Ask here your questions to get help using GDevelop.
User avatar
By SwingShock
#60487 How to make timers still run when browser is out of focus ?

When i minimize the game or change browser tab, the timers stop running and stop triggering their actions. Is it possible to make it always run as long as the browser is running ? I also tried checking off 'Deactivating input when focus is lost' which also didn't work.
Last edited by SwingShock on Sun 8 Jan 2017, 21:44, edited 1 time in total.
User avatar
By SwingShock
#60543 I have uploaded an example file. You can see when you minimize or switch tab in browser, the timer stops running. I am trying to create an idle game now so it's almost a must for it's function. Are there any workarounds to this ?
Attachments
(5.1 KiB) Downloaded 27 times
User avatar
By SwingShock
#60677 It's still unsolved. :(

I removed all the timers, fetched the system clock second to run with a variable as timer with a conditional check. It works fine like when it was with timer but still when the browser is minimized or tab switched, it stops again just like with the timers.