So I have a top down arcade style game and I'm trying to implement a bullet into it however My character doesn't orient to different angles. He just walks up down left or right. so When I spawn a bullet it has no angle to go off of and defaults to 0 degrees.
How can I tell the bullet to fire from the correct angle when I have a sprite that doesn't orient to angles
What angle do you want it to fire at? Or rather how do you plan to determine the correct angle? Do you aim with the mouse?
i would like it to be aimed which way the character is facing and its not aimed with a mouse.
The way my character moves is I have 4 animations Left, down, right, and up
Depending on which arrow key is held the different animation plays
So you can move at angles, but your character only faces the four cardinal directions.
Are you using the 8Direction behavior?
Then you want to set the bullet angle to Player.8Direction.MovingAngle.
So the bullet still comes out at the 0 degree angle however when i hit the shoot button a second time the bullets direction changes midflight
Develop games in your browser. Powerful, performant & highly capable.
Okay so I figured it out and got the bullets working however I have a small bug with them if my player is not holding a direction the bullets will default back to angle 0
Haha I solved my dilemma Thanks for your help though