Search the Community
Showing results for tags 'physics loop'.
Hello, It seems, that if I switch browser's tab while game is running - the world stops completely. If I start jumping, then switch tab and wait for some time, then switch back - I'm still in the air and continue to fall down. Bullets also freeze in the air. I try to add this to the create() function, but there is no effect: var game = this.sys.game; game.events.off('hidden', game.onHidden, game); game.events.off('visible', game.onVisible, game); What can I do to prevent stopping of the physics loop? I could live with missing animations, sounds and things like that, but physics should continue to run and change bodies positions. What can I do?