Hello fellow devs,
Maybe this can is too long but Im trying to explain my workflow as clear as possible.
I am animating a character for a 4 direction movement in Anima 2D and wanted to know if someone has tried this before and can give me some tips.
I am working with a GameObject called Character that holds the collision and character controller. Then a Child Object that has the Animator. And then below this, 3 children with different sprites, each onw with an individual skeleton and respective rigs.
Up Player, Down Player and Side Player (this flips the Scale in X of the Character GameObject)
Every child has it’s respective animations. For example Right Player, holds the IdleSide and WalkSide animation that move all of it’s bones. Then the Up Player has it’s own animations, and the same for Down Player. Now my question is this. How do I switch between the 3 bodies to exchange the animations?
I tried doing it in Mecanim for example, when I press Right to walk Right, Mecanim deactivates the gameObjects of UpDown and DownPlayer, then when I press up it deactivates Right Player and activates UpPlayer, etc. But somehow that’s not working.
My question is, how do I do this? switch off one body, and activate the other?
Or am I doing this completely wrong? Another Idea I’ve had is instead of having 3 child objects with 3 different skeletons somehow reuse the same skeleton and bind it to several graphics and change their poses when necessary. Does this make more sense?
Sorry for the long post hope it was clear enough.