Ah.. you were right. I thought the Game End event is getting called only when I use game_end() function but it also works when I close the game with [X] or alt+f4There appears to be a game end event under the other section which I imagine would work.
https://docs.yoyogames.com/source/dadiospice/000_using gamemaker/events/other event.html
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.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.
Actually closing from Task Manager or command line also calls the Game End event. I tried thatsuch as kills from Task Manager, the command line