Jump to content

Display a particles behind my ship according to his rotation


najie
 Share

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 :)

 

post-13677-0-13683300-1426537224_thumb.p

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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