Hello!
I have a family called Animals with several instances on same screen.
This family has a instance variable, let's call it "var1".
And, finally, I have an sprite called dummy with several instances on same screen.
I want to every tick set var1 of each instance of family Animals to:
distance(Animals.X,Animals.Y,dummy.X,dummy.Y), picking the dummy that is nearest to Animals.
When I have one single instance of Animals, it works. More than one, the var1 get non sense values.
I don't know how to pick all members of Animals to get this action right.
Could you help me?
Thanks!