aRDee Posted September 11, 2018 Share Posted September 11, 2018 A short background. I finished the "First Game project" made for Phaser 3 - https://phaser.io/tutorials/making-your-first-phaser-3-game Also, I used this neat phaser-cli (scaffolding): https://github.com/phaser-cli/phaser-cli, which I used for the project. Finally, got that all together and working - https://github.com/aR-Dee/phaser3_tut, but wanted to experiment and expand the project with a simple "pause menu". Pause menu is not working as expected, it gets to PauseScene and takes it off to get back to PlayScene, but: 1. PlayScene gets reset (instead of continue where it was paused, that is my assumption of how it should work) 2. If arrow keys were pressed during pressing the "pause key", they kind of "lock up" and the player object, constantly gets input, despite the arrow key not being pressed. I hope someone can help me out. I looked over the lab examples, the API docs, this forum, nothing that was obvious for me. PauseScene.js - scene run/pause implentation line 24 PlayScene.js - scene run/pause implentation line 95 Link to comment Share on other sites More sharing options...
iKest Posted September 12, 2018 Share Posted September 12, 2018 this is best boilerplate template for phaser 3 https://github.com/agar3s/phaser3-jam-boilerplate include scene managment (main, play, pause, splash etc) blackhawx 1 Link to comment Share on other sites More sharing options...
Recommended Posts