- Home /
How to make animation transition to any other animation?
I'm creating a game with a large amount of moves that the player can do. The player is able to do nearly all of these moves when doing any other move, and I'm wondering if there is a way that I can just make animations and have them transition when I call them. Something like this:
//Transition when playing
if (running) {animator.Play("runAnimation");}
if (ducking) {animator.Play("ducking");}
if (attacking) {animator.Play("attacking");}
if (jumping) {animator.Play("Jump");}
//Don't transition to and just snap
if (onWall) {animator.Play("onWall");}
//A large amount of tests like this follow
Is there a way I can do this? Using animator.Play();
just snaps straight to the animation instead of smoothly transitioning, but I want it to transition unless I test otherwise. How can I accomplish this?
Thanks in advance!
Your answer
Follow this Question
Related Questions
Smooth transition with Animator.Play or similar? 2 Answers
Continuously Play Animation Forwards and Backwards with Mechanim 0 Answers
Animator won't let me add transitions 1 Answer
How can I make a state pass after a reversed state? 0 Answers
How to setup this melee animation system in Mecanim? 1 Answer