Advertisement
Guest User

Untitled

a guest
Dec 1st, 2015
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. if obj_check.SaveEnabled = true and global.pause = 1
  2. {
  3.  
  4. //Sprites
  5. if selection == 0 or selection > 0
  6. {
  7. selected = "Resumebutton"
  8. }
  9.  
  10. if selection == -1
  11. {
  12. selected = "Savebutton"
  13. }
  14.  
  15. if selection == -2 or selection < -2
  16. {
  17. selected = "MainMenubutton"
  18. }
  19.  
  20. //Limits
  21. if selection > 0
  22. {
  23. selection = 0
  24. }
  25.  
  26. if selection < -2
  27. {
  28. selection = -2
  29. }
  30.  
  31. //Selection
  32. if keyboard_check_pressed(vk_up)
  33. {
  34. selection +=1
  35. }
  36.  
  37. if keyboard_check_pressed(vk_down)
  38. {
  39. selection -=1
  40. }
  41.  
  42. //Issues
  43. if keyboard_check_pressed(vk_enter)
  44. {
  45. if selected == "Resumebutton"
  46. {
  47. global.pause = 0;
  48. }
  49.  
  50. if selected == "Savebutton"
  51. {
  52. script_execute(script_save_ini());
  53. global.pause = 0;
  54. }
  55.  
  56. if selected == "MainMenubutton"
  57. {
  58. global.pause = 0;
  59. room_goto(0);
  60. obj_slime.visible = false
  61. }
  62. }
  63. }
  64.  
  65. if obj_check.SaveEnabled = false or global.pause = 0
  66. {
  67. instance_destroy();
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement