Moving Sprite/projectile in the direction of another sprite without using follow

Hi all!

If we wanted a sprite to shoot towards another/ spawn a projectile to spawn in the direction of another sprite do you guys have any idea how I could do that? I know it’s tricky as I’d need to calculate a velocity that goes at a set speed and in the required direction so I was just wondering if anyone was aware of a nice algorithm for that?

Thanks in advance for any suggestions


There is an extension called the Sprite Utilities extension that would work for this (If I’m understanding correctly).


This is how you would use the blocks.
I hope this helps! :slight_smile:


Fantastic, that’s perfect. Thanks so much for your help.

1 Like