Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if obj_check.SaveEnabled = true and global.pause = 1
- {
- //Sprites
- if selection == 0 or selection > 0
- {
- selected = "Resumebutton"
- }
- if selection == -1
- {
- selected = "Savebutton"
- }
- if selection == -2 or selection < -2
- {
- selected = "MainMenubutton"
- }
- //Limits
- if selection > 0
- {
- selection = 0
- }
- if selection < -2
- {
- selection = -2
- }
- //Selection
- if keyboard_check_pressed(vk_up)
- {
- selection +=1
- }
- if keyboard_check_pressed(vk_down)
- {
- selection -=1
- }
- //Issues
- if keyboard_check_pressed(vk_enter)
- {
- if selected == "Resumebutton"
- {
- global.pause = 0;
- }
- if selected == "Savebutton"
- {
- script_execute(script_save_ini());
- global.pause = 0;
- }
- if selected == "MainMenubutton"
- {
- global.pause = 0;
- room_goto(0);
- obj_slime.visible = false
- }
- }
- }
- if obj_check.SaveEnabled = false or global.pause = 0
- {
- instance_destroy();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement