• 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!

Legacy GM [SOLVED] Forced game closing detection

marasovec

Member
Can I detect when the game gets closed with [X] or ALT+F4?
I have a server that is sending its info via HTTP requests and I want to send a one last request when the game closes.
 
Last edited:

FrostyCat

Redemption Seeker
Can I detect when the game gets closed with [X] or ALT+F4?
I have a server that is sending its info via HTTP requests and I want to send a one last request when the game closes.
Be warned that the Game End event only captures soft quits that can be responded to, i.e. game_end(), X button and Alt+F4 on Windows. It will NOT respond to hard quits such as kills from Task Manager, the command line or the OS in general (especially on HTML5 and mobile). Your final request must not be a linchpin by design.
 
Top