Quit android game when screen is turned off or game is minimized?


Is this possible? I just realized that the entire date and time system that my game uses (to keep timers counting down even when the game is closed) doesn’t work if the game is minimized or the screen is turned off but the game is still running on a person’s phone. The timers stop, but when the game is brought up again it doesn’t do the “at the beginning of the scene” events to figure out and apply the time that’s passed.


seems the option of checking if “window is minimized” is pc only.


Yeah, I noticed that too. I don’t know if there actually is a way to do it for android, but either way I ended up reworking my system completely so it works the way I need it to now without the need for the game to quit