I?m scratching my head with this one, as it shroud be very easy, yet I can?t find anything on the tutorials or forums.
I use a red box as an enemy, and I have plenty. Yet I want the box to be invisible, and attach an animated spite to it (using the Pin behavior).
So, I do:
EnemuBox On Create -> EnemyBox Spawn EnemySprite
-> EnemySprite Pin to EnemyBox
-> EnemySprite Set Position to Enemy Box
EnemyBox is Moving -> EnemySprite Set Animation to "WalkingAnimation"
The thing is that all my enemies are acting like choreographed dancers. When one plays the wlakingAnimation, all do. And I can?t figure a simple way to encapsulate the Box and the sprite animation.