infinite-runner-template-phaser3
infinite-runner-template-phaser3 copied to clipboard
Mouse still flies up even when spacebar is up
Hello I was following the tutorial up to page 57 and I noticed that sometimes I am able to get the mouse to 'stick' to flying even when my space bar was up. It doesn't happen every time and is a bit difficult to trigger. (Usually when holding the space bar for extended period of time) here is the rocketMouse class code: https://pastebin.com/NEHcXuPt
I changed the preupdate to an update to see if it fixed the bug but it didn't.
I also changed the line if(this.cursors.space?.isDown)
to if(this.cursors.space.isDown)
to see if it might fix it but also no luck.
Thanks!