Sorry if this sounds like a really dumb question, but I can not recall the math I need to calculate the X-velocity and Y-velocity of an object from an angle and a top speed.
In my game, the character has a gun with an angle, and it shoots bullets that travel at 5 pixels a frame. I want to give the bullets the X-velocity and Y-velocity they should move every frame based on the gun’s angle and the bullet speed, but I’m getting really weird results (bullets are not going in the direction the gun is pointing).