Click the green flag to activate the script to see how it works. Go inside this project to inspect the script and to put it in your "backpack." Drag Scratch Cat to recalculate the closest clone.
Credit: Kenichi10B - Created code to find distance to a clone from a sprite. Note: Only backpack the script that is ***NOT*** running. This can be used for games such as tower defense simulators. The names of the variables are nonessential: you can rename or replace them as long as they keep their set function. This script isn't going to automatically work: you must configure it to fit in your game.