Guest User

Untitled

a guest
Jan 13th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. if (distance_to_object(o_Arshes) < global.DISTANCE_TO_ENTER)
  2. {
  3. colliding = 1;
  4. }
  5. else
  6. {
  7. colliding = 0;
  8. }
  9.  
  10. if (keyboard_check_pressed(190))
  11. {
  12. if (colliding == 1)
  13. {
  14. colliding = 2;
  15. sound_play("02_CollectingKale"); // Sound of shutter opening
  16. image_speed = .4;
  17. }
  18. }
  19.  
  20. if (colliding == 2)
  21. {
  22. if (image_index == (image_number - 1))
  23. {
  24. image_speed = 0;
  25. instance_change(o_OmnitopiaRedGroundShutterOpen, true);
  26. }
  27. }
Add Comment
Please, Sign In to add comment