oxxxo Posted May 5, 2015 Share Posted May 5, 2015 I noticed that the timer event also stop when the user switch tab orlook at another window then start again once you come back to the tab where the game is open. is there a away to change this? or is it possible for the timer to be continuous even the user leave the browser? Link to comment Share on other sites More sharing options...
nkholski Posted May 5, 2015 Share Posted May 5, 2015 Try this (but your browser may stop calling requestAnimationFrame() anyway which causes the update-function not to be called): this.game.stage.disableVisibilityChange = true; Link to comment Share on other sites More sharing options...
ForgeableSum Posted May 5, 2015 Share Posted May 5, 2015 If you use javascript's native functions, setTimeout or setInterval function, they will continue to execute regardless of wether the tab is active. Link to comment Share on other sites More sharing options...
Recommended Posts