How do i detect the nearest sprite of a type?

want to implement auto-aiming projectiles for my vampire survivors clone.
that’s it
yeah

Check out this topic by Luke!

1 Like

i wasn’t very clear before, but my intention was to have it not actively follow the enemy, but rather aim once and stay on that path.

@catto check out the jwunderl/arcade-sprite-utils extension! there are a few blocks in there for finding the closest enemy of a type and getting the angle from one sprite to another