Bullet sometimes freeze when firing horizontal

I took the bullet examples from http://phaser.io/examples/v3/view/physics/arcade/bullets-group and modify for horizontal firing

When I fire, sometimes the bullet got stuck as per the attach image below:-

The game is located at https://stanleyseow.github.io/js/phaser/scene-shooter/

I have also enable window.bullets, window.player and window.stars so you can access it directly from the console.

Can someone suggest why this is happening and help me take a look at the codes , I also pasted it to pastebin

https://pastebin.com/NC9PmDu0

Thanks

Bullets have disableBody() in shootStars() (correct) so they need enableBody() or similar in fire().

1 Like

Thanks for spotting this …

I hv added enableBody() to my Bullet class.