Ezelia Posted August 1, 2014 Share Posted August 1, 2014 Hello, I'm experimenting some multiplayer functions with phaser, which I'll share with you if get it working. but I have a question regarding Phaser. when a phaser game lose focus, the simulation stops (game is paused).I assume that this is related to RAF behaviour. but is there a way to continue game state updates and only pause rendering ? so when the game is focused again it directly draws the actual state ? for now, I don't want to do the whole simulation in the server side then synchronize with clients ...etcmy goal is to give a simple example on how to start a multiplayer game with phaser. InsOp 1 Link to comment Share on other sites More sharing options...
lewster32 Posted August 1, 2014 Share Posted August 1, 2014 The property you're looking for is game.stage.disableVisibilityChange - if you set this to true, the game will continue running in the background. jdnichollsc and InsOp 2 Link to comment Share on other sites More sharing options...
Ezelia Posted August 1, 2014 Author Share Posted August 1, 2014 awesome ! thank you, read the doc but have not noticed the existance of this feature Link to comment Share on other sites More sharing options...
wayfinder Posted August 1, 2014 Share Posted August 1, 2014 I noticed that when I added gamepad functionality to my project, the game stopped this behavior. Not sure if that's by design Link to comment Share on other sites More sharing options...
Recommended Posts