Projectiles for All-around rotating sprite that can move

So I’m working on a project, and I’m almost done. However, there is a problem. There is a sprite (the player) that moves freely and rotates towards the mouse. I have created code to cast projectiles, but I cannot determine the velocity, since there are endless amount of direction differentiations. Could anyone help?


Have you tried using a combination of the sprite.getDirection and sprite.setSpeedAndDirection() commands?


Yeah, I figured it out now! Thanks.

1 Like