Jump to content

Spaceship missile location question


Recommended Posts

I am making a game which involves a ship that can fire missiles. I've figured out how to get the missiles to fire in the same direction the ship is facing but I want them to emerge from the same location on to the ship (ie. the front of the ship). Does Phaser have a way to get the x, y of the center or edges of a sprite? The alternative is to hack together some sin/cos logic but so far that method has proven "interesting".


Please let me know, thanks.

Link to comment
Share on other sites


  • Recently Browsing   0 members

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