A
AnVee20XX
Guest
I lurked a bit on these forums and on the steam forums and have been unable to find a working solution for my case despite may other similar systems.
Put simply, I have an object that the player con rotate. Said object is only supposed to fire projectiles from a specific point. {(18,-8) The main object is 64x64} I can rotate the main object just fine however, I am unable to cause the projectile to fire from anywhere other than where 18,-8 is when the object has not rotated.
How can I make it so that the projectile will always be fired from that area on the sprite as well as make it fire in the direction the sprite is facing?
Attached is a picture of the ship and bullet, including: where the bullet is anchored, how the ship is rotated at the moment, what direction I want the bullet to go.
Put simply, I have an object that the player con rotate. Said object is only supposed to fire projectiles from a specific point. {(18,-8) The main object is 64x64} I can rotate the main object just fine however, I am unable to cause the projectile to fire from anywhere other than where 18,-8 is when the object has not rotated.
How can I make it so that the projectile will always be fired from that area on the sprite as well as make it fire in the direction the sprite is facing?
Attached is a picture of the ship and bullet, including: where the bullet is anchored, how the ship is rotated at the moment, what direction I want the bullet to go.