miyaxu Posted January 8, 2016 Share Posted January 8, 2016 Hi allI'm Taiwanese, my english is poor , but I will do my best describes the problem https://jsfiddle.net/p7zbawt3/ I've added that code:this.game.stage.disableVisibilityChange = true;andthis.config.forceSetTimeOut = true;When the browser tab loses focus,the tween animation can keep running,but the Physics ARCADE no works with loops, It was paused... Hope that helps, thanks! Link to comment Share on other sites More sharing options...
shohan4556 Posted January 8, 2016 Share Posted January 8, 2016 I have found this post relative your issue here http://www.html5gamedevs.com/topic/13812-keep-the-game-running-when-switching-tabs/please let us know if you fix your problem. miyaxu 1 Link to comment Share on other sites More sharing options...
drhayes Posted January 8, 2016 Share Posted January 8, 2016 Put "game.stage.disableVisibilityChange = true;" outside your create and preload functions like this: https://jsfiddle.net/p7zbawt3/2/ shohan4556 1 Link to comment Share on other sites More sharing options...
miyaxu Posted January 10, 2016 Author Share Posted January 10, 2016 Put "game.stage.disableVisibilityChange = true;" outside your create and preload functions like this: https://jsfiddle.net/p7zbawt3/2/ Thanks, but when I switching tabs, all was paused... Link to comment Share on other sites More sharing options...
drhayes Posted January 11, 2016 Share Posted January 11, 2016 Did you also do the "forceSetTimeout"? Link to comment Share on other sites More sharing options...
miyaxu Posted January 12, 2016 Author Share Posted January 12, 2016 https://jsfiddle.net/p7zbawt3/4/ That it ? sorry, I really didn`t understand.. they still all paused when switching tabs Link to comment Share on other sites More sharing options...
mattstyles Posted January 12, 2016 Share Posted January 12, 2016 Chrome might still pause the setTimeout, I did find some stuff from the Google Chrome team but I can't find it now, the closest I've found which highlights the problem is this old question. In my own (rough) tests I've found it temperamental more recently, but I really havent tested properly. Link to comment Share on other sites More sharing options...
Recommended Posts