Ryuuke Posted January 25, 2014 Share Posted January 25, 2014 Hello, I want to create a pause menu that when the user click in a button, the pause menu apear and the game is paused. I havesome trouble with that, when the user click the first time the game is paused, but the second time, nothing change, because the game is paused, so how can I do that?this.PauseButton = this.game.add.button(10, 10, "spritesheet", () => { this.game.paused = !this.game.paused; }, this, "pause-button1.png", "pause-button2.png", "pause-button3.png"); Link to comment Share on other sites More sharing options...
Heppell08 Posted January 25, 2014 Share Posted January 25, 2014 That might be an issue because when the game is paused, it is unpaused by default with mouse click input. If I'm not mistaken in 1.1.4 there is a fix for this but don't quote me on that. Link to comment Share on other sites More sharing options...
Ryuuke Posted January 25, 2014 Author Share Posted January 25, 2014 Ok, thx, problem solved, I used jquery to display menu and then I can pause the game & click on menu, I think it's a good solution Link to comment Share on other sites More sharing options...
Recommended Posts