Advertisement
Guest User

Image Index Menu Selector

a guest
Oct 28th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //ANY KEY EVENT
  2.  
  3. if keyboard_check_released(vk_down) and image_index=0
  4.     {
  5.     image_index=1
  6.     sound_play(t_s)
  7.     }    
  8.  
  9. if keyboard_check_released(vk_down) and image_index=1
  10.     {
  11.     image_index=2
  12.     sound_play(t_s)
  13.     }    
  14.    
  15. if keyboard_check_released(vk_up) and image_index=2
  16.     {
  17.     image_index=1
  18.     sound_play(t_s)
  19.     }        
  20.    
  21. if keyboard_check_released(vk_up) and image_index=1
  22.     {
  23.     image_index=0
  24.     sound_play(t_s)
  25.     }    
  26.    
  27. if keyboard_check(ord("Z")) and image_index=0
  28.     {
  29.     room_goto_next()
  30.     }
  31.  
  32. if keyboard_check(ord("Z")) and image_index=1
  33.     {
  34.     game_end()
  35.     }
  36.  
  37. if keyboard_check(ord("Z")) and image_index=2
  38.     {
  39.     game_end()
  40.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement