Random beginner-question: don't pause timer when running in background on mobile

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By pferft

Hi everyone,

working on a mobile project, I have a countdown running (a Label displaying the child’s (Timer) wait_time). The timer “pauses” (interrupts) when switching to another app (not closing the game, just “shifting” to the background…), so the counter continues on re-opening the game from where it paused.

What I want is the counter not to interrupt. Is that possible?

:bust_in_silhouette: Reply From: pferft

I believe this is helpful:
https://forum.godotengine.org/22990/how-to-detect-when-the-game-loses-and-gains-focus

So I assume it’s not really possible to keep things running in the background and necessary calculations etc. need to be refreshed on focussing-in again…