I’m working on a top down shooter. You play as a space ship that shoots asteroids with bullets.
When I’m facing up or down, and I fire the bullet, Instead of coming from the top of the ship, it comes from the left of it. It works fine when I’m doing it left to right though.
What are the events for firing the bullet? At a guess, I’d say you need to define a point on the spaceship for laser placement :
and move the origin of the laser :
Then use events like :
To get :
Note, if you need to rotate the laser, I suggest you move the Center point for the laser to the same position as the laser’s origin. (It may be a frowned upon practice, but it’s the most practical and simplest method, and is perfectly fine for this situation)