Hello,
I was under the impression that adding something to a child object would make it be favored in the selection process of an object, however, this does not seem to be the case for my situation so I am looking for a way to dynamically select an object that is a child of a different object.
Here is the pseudo code that I have:
1. I create an enemy controller
2. When said enemy controller gets created I spawn a sprite for it
3. Sprite gets added as a child
4. When the enemy controller collides with a wall I want to run an animation on the enemy
Simply running the animation on "enemyAnimation" creates a situation where it runs on all instances of enemy animation. So how can I tell construct that I want that to happen only on the child object?