How do I pick one object from family by family variable and change only that one's object animation frame?
Here is a screen of my code^
So there are several enemies on screen in enemy family. Player attacks them and their hp goes down. That is simple.
I want to check if an enemy lost half hp, then change his animation frame. Method on screen works fine for selecting specific enemy, not family.
I've put trigger once
but it affets only one enemy, and until he is destroyed other's frame won't change even if hp met condition.
If i put trigger once away - then all family members on screen will change animation even if only one of them really met condition.