thpj5/objects/obj_pauser/Step_0.gml

15 lines
287 B
Plaintext

menu_wait--;
if (keyboard_check_pressed(ord("P")) && menu_wait <= 0) {
menu_wait = MENU_DELAY;
pause = !pause;
if (!pause) {
instance_activate_all();
surface_free(paused_surface);
paused_surface = -1;
}
}
if (pause) {
//put things here to prevent alarms from counting down
}