Advertisement
Guest User

Untitled

a guest
Feb 5th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Create Event
  2. choice = 0
  3.  
  4. //Step Event
  5. ///Up Arrow
  6. if keyboard_check_pressed(vk_up)
  7. {
  8.     if choice != 0
  9.         {
  10.         //Play sound here.
  11.         choice -= 1
  12.         }
  13.     else choice = 0
  14. }
  15. ///Down Arrow
  16. if keyboard_check_pressed(vk_down)
  17. {
  18.     if choice != 2
  19.         {
  20.             //Play sound here.
  21.             choice += 1
  22.         }
  23.     else choice = 0
  24. }
  25.  
  26.  
  27. //Draw Event
  28. if choice = 0 {draw_sprite("SPRITENAMEHERE",0,x+32,y+60,);}
  29. if choice = 1 {draw_sprite("SPRITENAMEHERE",0,x+32,y+60,);}
  30. if choice = 2 {draw_sprite("SPRITENAMEHERE",0,x+32,y+60,);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement