Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (distance_to_object(o_Arshes) < global.DISTANCE_TO_ENTER)
- {
- colliding = 1;
- }
- else
- {
- colliding = 0;
- }
- if (keyboard_check_pressed(190))
- {
- if (colliding == 1)
- {
- colliding = 2;
- sound_play("02_CollectingKale"); // Sound of shutter opening
- image_speed = .4;
- }
- }
- if (colliding == 2)
- {
- if (image_index == (image_number - 1))
- {
- image_speed = 0;
- instance_change(o_OmnitopiaRedGroundShutterOpen, true);
- }
- }
Add Comment
Please, Sign In to add comment