MrEpicIsHere777

Untitled

Apr 8th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. Information about object: moveract_obj
  2. Sprite: soulback_spr
  3. Solid: false
  4. Visible: true
  5. Depth: -40
  6. Persistent: false
  7. Parent:
  8. Children:
  9. Mask:
  10.  
  11. No Physics Object
  12. Create Event:
  13.  
  14. execute code:
  15.  
  16. pos = 0;
  17. x = 48;
  18. y = 272;
  19.  
  20. Step Event:
  21.  
  22. execute code:
  23.  
  24. //LEFT
  25. if keyboard_check_pressed(vk_left)
  26. switch(pos){
  27. case 0:
  28. x = 447;
  29. y = 272;
  30. stop_and_sound(selectui_snd);
  31. pos = 2;
  32. break;
  33. case 1:
  34. x = 48;
  35. y = 272;
  36. stop_and_sound(selectui_snd);
  37. pos = 0;
  38. break;
  39. case 2:
  40. x = 247;
  41. y = 272;
  42. stop_and_sound(selectui_snd);
  43. pos = 1;
  44. break;
  45. }
  46. //RIGHT
  47. if keyboard_check_pressed(vk_right)
  48. switch(pos){
  49. case 0:
  50. x = 247;
  51. y = 272;
  52. stop_and_sound(selectui_snd);
  53. pos = 1;
  54. break;
  55. case 1:
  56. x = 447;
  57. y = 272;
  58. stop_and_sound(selectui_snd);
  59. pos = 2;
  60. break;
  61. case 2:
  62. x = 48;
  63. y = 272;
  64. stop_and_sound(selectui_snd);
  65. pos = 0;
  66. break;
  67. }
  68. //Z
  69. if keyboard_check_pressed(ord('Z'))
  70. switch(x){
  71. case 48:
  72. stop_and_sound(confirm_snd);
  73. with act_options {instance_destroy()};
  74. global.mess = 0;
  75. instance_create(0,0,act_flavortext);
  76. instance_destroy();
  77. break;
  78.  
  79. case 247:
  80. stop_and_sound(confirm_snd);
  81. with act_options {instance_destroy()};
  82. {if global.has_acted1 = 0 {global.mess = 1 global.has_acted1 = 1};
  83. else global.mess = 3;}
  84. instance_create(0,0,act_flavortext);
  85. instance_destroy();
  86. break;
  87.  
  88. case 447:
  89. stop_and_sound(confirm_snd);
  90. with act_options {instance_destroy()};
  91. {if global.has_acted2 = 0 {global.mess = 2 global.has_acted2 = 1};
  92. else global.mess = 4;}
  93. instance_create(0,0,act_flavortext);
  94. instance_destroy();
  95. break;
  96. }
  97. //X
  98. if keyboard_check_pressed(ord('X'))
  99. {
  100. with act_options instance_destroy();
  101. instance_create(0,0,asrielflavortext_obj);
  102. with mover_object_thing {x = actss_obj.x y = actss_obj.y};
  103. global.mover = 0;
  104. instance_destroy();
  105. }
Add Comment
Please, Sign In to add comment