Chimp Posted April 13, 2015 Share Posted April 13, 2015 I've been searching for a way to make sure that the game doesn't pause when switching tabs. I've tried using:game.stage.disableVisibilityChange = true;But this only works if the window is open, if I switch tabs it does nothing. I've also tried using forceSetTimeOut:var game = new Phaser.Game(800, 600, Phaser.AUTO, 'game', { preload: preload, create: create, update: update});game.config.forceSetTimeOut = true;I read on several Phaser posts that this should enable it, but it hasn't done anything, maybe I'm doing something wrong. Does anyone know how I can get this working? I've been searching and testing for hours but still have nothing. Link to comment Share on other sites More sharing options...
rich Posted April 13, 2015 Share Posted April 13, 2015 forceSetTimeOut is the only way to do this, but you have to set it in a config object passed to the Phaser.Game constructor. You can't set it after the game has booted (as done in the code above) Link to comment Share on other sites More sharing options...
Recommended Posts