This is what I'm trying to do:
I'm spawning an ennemy which is composed by an invisible sprite with platform behavior and alongside with it an animation with collision detection that is pinned to the invisible sprite. I want to do some events like:
When Animation is hit by a weapon
Set Animation to play some animation
Set InvisibleSprite to stop moving for 1 second
But of course this applies to every invisible sprites. I tried to make an instance variable that is stocking the UID of the other sprite and pick it in my event but I can't get this working. Someone could give me a lead?