I want to get the distance between to sprites, but they are the same objects (just copies). I know that I can use two diffrent objects to avoid that, but in my game I have more than 2 copies, and I don't want to create a new sprite for each of that.
The code for example:
Is there a way to pick the second instance of the object? The code above returns 0, due to the fact that it doesn't calcualate the distance between the two instances but of its own.
Thanks for your help in advance!