I have the code:
every x second - add 1 to timer.
When "timer" is variable.
But when browser tab loses focus, the timer stops.
How to make sure that it does not stop?
Develop games in your browser. Powerful, performant & highly capable.
Make sure Pause on Unfocus is set in the project settings.
as it is said inthe decription of this setting, it is preview only.
try to set a variable to wallclocktime (it is a system expression) on the start of your timer, then just check the difference between that variable and wallclocktime to have the number of seconds since you setted the variable.
try to set a variable to wallclocktime (it is a system expression)
Thank you! What the doctor ordered.