san40511 Posted December 12, 2015 Share Posted December 12, 2015 Hi guys. How I can implement pause menu on Phaser. When I trying to set game.paused = true then everything on the screen became disable. So my question is : How create the button which always enabled even when game was paused. Link to comment Share on other sites More sharing options...
Rudrabhoj Bhati Posted December 12, 2015 Share Posted December 12, 2015 Have a pause boolean variable. If it is false, only then to things which shouldn't be done while game is paused, like rotating, moving, etc. Link to comment Share on other sites More sharing options...
san40511 Posted December 12, 2015 Author Share Posted December 12, 2015 Have a pause boolean variable. If it is false, only then to things which shouldn't be done while game is paused, like rotating, moving, etc.Can you give me example. I've tried and it's nor work for me Link to comment Share on other sites More sharing options...
san40511 Posted December 12, 2015 Author Share Posted December 12, 2015 I've resolved my problem by means of this.game.physics.arcade.isPaused=true;with this parameter I don't need pause all game: http://phaser.io/examples/v2/arcade-physics/global-pause Link to comment Share on other sites More sharing options...
jdx2015 Posted January 11, 2016 Share Posted January 11, 2016 Hi everyone. I'm having the same problem as the original poster, but I'm not using physics. Does anyone know how to add buttons to a "pause menu" when you pause the entire game (i.e. this.game.paused = true)? Or is there a way to modify the pause menu example where the "unpause function" is one of the array buttons and not "Click outside the menu"?http://phaser.io/examples/v2/misc/pause-menu Link to comment Share on other sites More sharing options...
Recommended Posts