Hello Guys,
I have problems controlling composite entities. What I need is an object consisting of multiple sprites. The reason for that is that each sprite should start its animation in parallel. Example: Enemy consists of leg sprite and torso sprite. When the player gets near it should start walking in the direction of the player turning on movement animations of leg and torso sprites.
Here is an example project that doesn't do what it should. For each torso (redSprite) I create a leg (greenSprite) and pin the torso to the leg.
dl.dropbox.com/u/40417570/Tests/MultiSpriteProblem.capx
Movement animation is symboled with the flashing behaviour.
Problems:
- multiple legs are spawned for each single torso (!?)
- torso doesn't move with legs
- torso doesn't start its animation
The main problem arises with the need of multiple enemies of the same type. I got everyting working with only a player and one enemy.
The examples I've seen that use multiple enemies only do basic stuff (moving a single sprite, no animation).
I would appreciate any help!
Michael