#define scr_pause //Pauses the game when is pressed and resumes when pressed again //This function will pause the whole game, so you wont be able do press the close button to exit //returns wether the game was paused in the current step or not if (keyboard_check(vk_pause)) { var pause; pause=true; while (keyboard_check(vk_pause)) { sleep(1000/room_speed); } while (pause=true) { if (keyboard_check(vk_pause)) pause=false; sleep(1000/room_speed); } while (keyboard_check(vk_pause)) { sleep(1000/room_speed); } return 1; } return 0; //made by: Martin Larsson, Martin@mydownloadworld.com