Is there a way to detect the closest sprite and glide to it?

I want to make like auto-aiming arrow that goes to the nearest sprite(enemy). But I don’t know if there’s a way to detect the closest sprite?


will do it. (To get the MINIMUM block, drop the COLUMNS block on the arrowheads of the MIN block:
Monosnap Snap! 11.0.8 2025-12-01 20-23-01
The COLUMNS block is an option of [LENGTH] OF.)

Neighbors are limited to close proximity, so rather…

Alternatively you could find the X and Y coordinates of that sprite and then assign them to variables which you would input in the glide block.

[position V] of [ V]

Oh, duh, why didn’t I think of that? :~)

I think because it isn’t a primitive?
It seems like it should be, in my opinion.

that’s really interesting!

Wait where do I get that ‘Sort my () using ()’ block?

it’s a custom block, not available in the palette by default
all you need to do is drag the image into the editor (if it doesn’t work, click the image first and then drag it into the editor) and you will be able to use the blocks in the image

It’s from the “List utilities” library. You can get to it by clicking file > libraries.

Ok thanks