• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

[not solved] How do i fix this issue?

N

NizarPlayz

Guest
Hey everyone so i'm having this issue how can you stop your game from closing by ESC and if i uncheck that option and press X or ALT+F4 it won't close any help
 
J

Jaqueta

Guest
I suppose you're using GM8.1 (Upgrade when possible), you should go to the Global Game Settings, and disable the option that makes the game close when pressing Escape, when the user press the X button, or Alt+F4, GameMaker recognizes as the player pressed Escape Event.

So what you can do, is:
1 - Create a proper way to close your game, with menus.
2 - Check if Alt+F4 is being pressed, then close the game.
3 - Create an "Other>Close Button" event on your controller object (Assuming that you have one), and then, put your game_end() there to close the game.
 
Top