OnApplicationQuit

nathanlink169

Game Dev by Career, no idea what I'm doing
Veteran
Joined
Aug 15, 2013
Messages
72
Reaction score
32
First Language
English
Primarily Uses
RMMV
Hi all!

I'm looking for a place in the code where I can put a "export debug file" piece of text. I have the code that would export the debug file, and it's just a matter of "where to put this". I'd like for the file to export when the user quits the game, either by going back to the main menu, or by exiting the application entirely.

Does anyone know where this might be in the code? Thank you in advance!
 

deykuzor

Korean Guy Screaming in Italian American
Member
Joined
Sep 7, 2017
Messages
23
Reaction score
5
First Language
English
Primarily Uses
RMMV
You need to out a function call to that code when selecting game end.
You can set this up in the command window by adding an event listener for the Game End command so I would look that up.

Otherwise more frightening, you could do something like
GameWindowManager.onWindowClose = function() {
if(GameWindowManager._isWindowClosing) {
function call blah blah blah();
return;
}

I think that would work. I am not 100 percent sure though
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top