Khaihkd Posted March 21, 2014 Share Posted March 21, 2014 When i call this.game.paused = true;It's worked. I click anywhere on the screen of game, the game continue, but I want to click a button to continue. Thank you Link to comment Share on other sites More sharing options...
Heppell08 Posted March 21, 2014 Share Posted March 21, 2014 You need to either use DOM to unpause or pause only certain elements of the game and not the whole loop. I had issues with this myself but rolled a method that paused certain things i needed paused. I got asked about my game pause on twitter and wrote this paste bin with snippets of code and what i done. http://pastebin.com/btUGMGww Link to comment Share on other sites More sharing options...
presidenten Posted April 20, 2014 Share Posted April 20, 2014 Here is a way to do it without the dom, by listening to game.input.onDown: https://github.com/presidenten/phaser-examples/blob/7c0befd068b99bc653a492c61519a46ce532a188/examples/misc/pause%20menu.js Link to comment Share on other sites More sharing options...
Recommended Posts