How to find the player's direction with the raycasting extension?

I’m trying to use Sprite Util extension’s angles to let the player shoot bullets in the direction they look with raycasting, but it lines up.
how do you translate the raycasting direction variables into spriteutil’s directions?
direction
direction2

3 Likes

I think you’re actually gonna want to use the normal velocity block. Just put the dirX block in the vx side, multiplied by whatever speed you want the projectile to go at, and do the same for the dirY and vy. I hope this helps! :slight_smile:

5 Likes

omg thanks so much! i’ve been so puzzled at this for a while!

1 Like

how would I do this with an animation that is meant to follow where the player goes but ONLY right in front of them? I am also using the raycast extension