Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ANY KEY EVENT
- if keyboard_check_released(vk_down) and image_index=0
- {
- image_index=1
- sound_play(t_s)
- }
- if keyboard_check_released(vk_down) and image_index=1
- {
- image_index=2
- sound_play(t_s)
- }
- if keyboard_check_released(vk_up) and image_index=2
- {
- image_index=1
- sound_play(t_s)
- }
- if keyboard_check_released(vk_up) and image_index=1
- {
- image_index=0
- sound_play(t_s)
- }
- if keyboard_check(ord("Z")) and image_index=0
- {
- room_goto_next()
- }
- if keyboard_check(ord("Z")) and image_index=1
- {
- game_end()
- }
- if keyboard_check(ord("Z")) and image_index=2
- {
- game_end()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement