I have code that goes like this:
If Animation1 not playing
If the distance between enemy and player is less than 100
Set animation to Animation1
On Animation1 Finished
Enemy: Destroy
It works until you get within 100 pixels of one.
Then all of them do the animation and then all of them die, instead of the one within 100 pixels doing it and dying.
Please help me!