|
Post by therealmethuselah on Nov 20, 2005 12:11:54 GMT -5
If you'd like to keep the ability to close your game with the 'X' in the upper right of the window, but don't want to use the Esc key to exit the game.
Uncheck the "Let <Esc> end the game" option in the Global Game Settings in the Other Tab.
Then add this code to a Persistent object: Step Event: // Don't let the Esc key end the game, only the Red X on the window if (keyboard_check(vk_escape) == true && keyboard_check_direct(vk_escape) == false) { game_end(); }
|
|
|
Post by IsmAvatar on Nov 20, 2005 14:07:23 GMT -5
oOo I've always wondered how to do that. Thanks a bunch for sharing.
|
|
|
Post by therealmethuselah on Nov 20, 2005 23:54:09 GMT -5
You're very welcome my friend.
|
|