I’m currently working on a game project integrating different animations. In our game, the main character can switch between two states (let’s call them A and B) when using its powers (so if you are in the A state and use the B power, you change to the B state and vice versa). The idea is that this can be seen in its face, which changes between the A and B faces with an animation. The character has one of this faces as its default (A) so all the animations (idle, runing, jumping…) are made with this face.
I managed to make the change of face animation work with the others using the Layered Animations tutorial:
The thing is that what we want to do is that when this animations finishes playing, the current character’s face is the opposite to the previous one (if it switches from A to B, the current face has to be B and vice versa) but I don’t really know how to achieve that. Right now, when the animation ends, the face is changed again to the default one (A). I know we could duplicate the same animations we have with the opposite face but I was wondering if there is a better solution.