I'm doing a platformer game. As sugested by manual
, I've created a rectangle object and pinned the animated sprite.
Now, I'm trying to do the same with the enemies. What I've done is...
On start layout, for each boundingBox:
-boundingBox spawn enemy.
-enemy set position to (boundingBox.X, boundingBox.Y)
-enemy Pin Pin to boundingBox
And it works fine.
But how can I identify each enemy to mirror or change the animations depending on what is the corresponding boundingBox doing?