Adding an Idle Jump Animation in Unity

Objective: Add an animation when the player jumps in idle state

For this example I downloaded the idle jump animation from mixamo.com and imported it into my unity project.

Then we have to add the animation to the player animator controller and create transitions, one from the idle state to the jump animation and another from idle jump to idle. Also we need a bool parameter to trigger the animation in the code.

In the calculated movement function we have to check for the space key to trigger the animation. There is another function calle set grounded values, this function is just to make the transition from jump to idle again and it is called when the player does not presses the space key in the calculate movement function.

And that’s it!!! We a have a new idle jump animation for the player.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rusben Guzman

A Software Engineer passionate about game dev and interactive products with Unity. I consider video games to be the artistic expression of programming.