Advertisement
flashjaysan

Step obj_touch_enter_startbouton

Feb 21st, 2021
1,669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /// @description entrée dans menu de transition = next niveau
  2.  
  3. // si la touche F12 est push = plein ecran
  4. if (keyboard_check_pressed(vk_f12)) {
  5.     if window_get_fullscreen() {
  6.         window_set_fullscreen(false);
  7.     } else {
  8.         window_set_fullscreen(true);
  9.     }
  10. }  
  11.  
  12. // CLAVIER
  13. if keyboard_check_pressed(vk_enter){
  14.     keyboard_clear(vk_enter);
  15.    
  16.     if (room == rm_start0) {
  17.         room_goto(rm_start1);
  18.     }
  19.     else if (room == rm_game0){
  20.         room_goto(rm_letutorial);
  21.     }
  22.     else if (room == rm_letutorial){
  23.         room_goto(rm_debutant1);
  24.     }
  25.     else if (room == rm_letutorial2){
  26.         room_goto(rm_debutant2);
  27.     }
  28.     else if (room == rm_niv1world1){   
  29.         room_goto(rm_game1);
  30.     }
  31.     else if (room == rm_niv2world1){   
  32.         room_goto(rm_game2);
  33.     }
  34.     else if (room == rm_niv3world1){   
  35.         room_goto(rm_game3);
  36.     }
  37.     else if (room == rm_niv4world1){   
  38.         room_goto(rm_game4);
  39.     }
  40.     else if (room == rm_niv5world1){   
  41.         room_goto(rm_game5);
  42.     }
  43.     else if (room == rm_niv6world1){   
  44.         room_goto(rm_game6);
  45.     }
  46.     else if (room == rm_niv7world1){   
  47.         room_goto(rm_game7);
  48.     }
  49.     else if (room == rm_niv8world1){   
  50.         room_goto(rm_game8);
  51.     }
  52.     else if (room == rm_niv9world1){   
  53.         room_goto(rm_game9);
  54.     }
  55.     else if (room == rm_niv10world1){  
  56.         room_goto(rm_game10);
  57.     }
  58.     else if (room == rm_world2transition){ 
  59.         room_goto(rm_world2endof_playtest);
  60.     }
  61.     else if (room == rm_world2endof_playtest){ 
  62.         room_goto(rm_start0);
  63.     }
  64.     else if (room == rm_gameover){ 
  65.         game_restart();
  66.     }
  67. }
  68.  
  69. // GAMEPAD
  70. if gamepad_is_connected(0){
  71.     if gamepad_button_check(0,gp_start){
  72.         if (room == rm_niv1world1){
  73.             room_goto(rm_game1);
  74.         }
  75.         else if (room == rm_niv2world1){
  76.             room_goto(rm_game2);
  77.         }
  78.         else if (room == rm_niv3world1){   
  79.             room_goto(rm_game3);
  80.         }
  81.         else if (room == rm_niv4world1){
  82.             room_goto(rm_game4);
  83.         }
  84.         else if (room == rm_niv5world1){   
  85.             room_goto(rm_game5);
  86.         }
  87.         else if (room == rm_niv6world1){   
  88.             room_goto(rm_game6);
  89.         }
  90.         else if (room == rm_niv7world1){   
  91.             room_goto(rm_game7);
  92.         }
  93.         else if (room == rm_niv8world1){   
  94.             room_goto(rm_game8);
  95.         }
  96.         else if (room == rm_niv9world1){   
  97.             room_goto(rm_game9);
  98.         }
  99.         else if (room == rm_niv10world1){  
  100.             room_goto(rm_game10);
  101.         }
  102.         else if (room == rm_world2transition){ 
  103.             room_goto(rm_world2endof_playtest);
  104.         }
  105.         else if (room == rm_world2endof_playtest){ 
  106.             room_goto(rm_start0);
  107.         }
  108.     }
  109. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement