Bilge Posted January 29, 2015 Share Posted January 29, 2015 Can Phaser be configured to pump messages even when its windows is not in focus? Link to comment Share on other sites More sharing options...
redsheep Posted January 30, 2015 Share Posted January 30, 2015 I think you mean the onBlur event. This event is fired when the game no longer has focus. Link to comment Share on other sites More sharing options...
Bilge Posted January 31, 2015 Author Share Posted January 31, 2015 The event may be fired but how does that help propagate rendering during the pause? Link to comment Share on other sites More sharing options...
Daniel Belohlavek Posted January 31, 2015 Share Posted January 31, 2015 http://docs.phaser.io/Phaser.Game.html#onBlur It's of type Phaser.Signal so you can do something like: this.game.onBlur.add(this.listenerFunction, this); Remember to set this.stage.disableVisibilityChange to true! Link to comment Share on other sites More sharing options...
Bilge Posted January 31, 2015 Author Share Posted January 31, 2015 disableVisibilityChange This is what I was looking for, thanks. Link to comment Share on other sites More sharing options...
Recommended Posts