• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Android HighScore not saving Andriod on Exit

U

Usama

Guest
ive made a basic game in game maker but every time i close the game vie the task manager the highscore doesn't save which is a variable saved in an ini file. however whenever i exit the game with the exit button it saves the score.

thanks in advanced
 
B

begalbrew

Guest
I don't know if the GMS framework sees an exit via the task manager as "game end" or not since that is hardware based control, In some ways I would doubt so but logically it should cleanup and exit using the "game end" event no matter the case of exit. Though I have never needed to do so, you can try to put the write to your ini in the game end event of an object that is persistent through all rooms.
 
S

signal

Guest
There's a function to check if the os is paused (I can't recall the exact name). You can do your saving there.
 
R

renex

Guest
Android does not trigger game end events.

Save everytime you deem important.
 
Top