Jump to content

Display a particles behind my ship according to his rotation


Recommended Posts

Hi everyone, new Phaser user here :)


I'm building a sort of space shooter, and my problem is, in every tutorial they show how to shoot bullets/lasers from a sprite, following his rotation (accelerationFromRotation method), but the bullet start from the center of the sprite (the ship in my case).


Is there a way to make it start from the behind/front of the ship following his rotation (using body don't work) ? Here is a screenshot with the fire engine of my ship with the same problem.

When I'm turning too fast, we can see the fire emitter emitting from the side of the ship...


Thanks in advance :)



Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...