- Home /
How to make a transition animation, intermediate animation between two main states
Hello, if I had a 2D sprite animation state for lets say, a Standby animation and I'd like for a "Turn" animation to go off between a Standby animation and a Standby_Left animation. I would want a transition to trigger an animation then immediately go to the next state after it is done. Anytime I tried to do this it'll either just keep repeating the transition state or do it once then get stuck in that state.
In my example, I'm in the Standby state, I transition toward Standby_Left by triggering a "facingLeft" boolean. If I put a Turn state in between then no transitions from Standby to Turn to Standby_Left (vice versa) will properly make it pass through Turn state nicely.
EDIT: I've had this question before but with no answer. I plan to also have a warrior stance change, and want a single sprite image to act as a transition sprite. I would like to do a Stance1 state that transitions to the TransitionSprite based on integer set in code, then immediately after go straight into Stance2. Usually anything I try gets stuck in TransitionSprite state even though the animator transition to leave the TransitionSprite state will be fulfilled with the same entry integer.