Stepイベント↓
if(keyboard_check_pressed(vk_up)) {
erabu--;
if(erabu < 0) {erabu = 0}
show_debug_message($"erabu={erabu},sentaku={sentaku}");
}
//下ボタン
if(keyboard_check_pressed(vk_down)) {
erabu++;
if(erabu >= sentaku) {erabu = 2;}
show_debug_message($"erabu={erabu},sentaku={sentaku}");
}
//それぞれの選択肢結果
if(keyboard_check_pressed(vk_space)) {
switch(erabu){
case 0:
show_debug_message($"selected 0");
instance_create_layer(100, 300, layer, obj_sakuya_hutuu);
break;
case 1:
show_debug_message($"selected 1");
instance_create_layer(300, 300, layer, obj_sakuya_naku);
break;
case 2:
show_debug_message($"selected 2");
instance_create_layer(500, 300, layer, obj_sakuya_warau);
break;
}
}
通報 ...