Hello!
Is there a way to keep a timer running even when an app is ‘closed’ or ‘suspended’?
I’m working on a two player game where I need the timer to keep running while it waits for the other player to move.
I’ve been searching but can’t seem to find what I’m looking for. Right now I have it written using timer.performWithDelay( ) but I’m not sure if it would be better to somehow relate it to os.clock ( ) or if I just need to use the application suspend, exit, etc API’s or what to keep the timer running.
I basically want the timer to keep running until it reaches the time limit regardless of the application state. I haven’t actually set it up for multiplayer yet but I think that’s about all that’s left to do. Any help would be much appreciated!
thank You!