Hey guys, I’m making a 2d top down shooter. So the thing is, I have a player who shoots bullets at the mouse direction from the players x and y. The player also rotates to the angle of the mouse. What I’m trying to make is so the bullets are bieng shoot from the end of the players gun (the gun are a part of the player image, so basically I want to shoot from an specific location on an rotating image). But after reading on the subject, I have yet to figured out how I’m gonna make this happen.
So, I got an angle (from the mouse direction), player x and y, how do I shoot from a specific location (end of the gun barrel) on a rotating image?
Would really appreciate some help here, thanks for reading.