From the course: Advanced Unity 2D: Platformer Player Movement

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Adding the jump animation

Adding the jump animation - Unity Tutorial

From the course: Advanced Unity 2D: Platformer Player Movement

Start my 1-month free trial

Adding the jump animation

- [Voiceover] So now that we have our jump working, and we have the player manager, it's actually really easy for us to add the jump animation in. Let's double click on our player to give it focus, and go into the actual animation timeline. Here, we're gonna need to create a new state for our jump. Let's create a new clip, and we'll save this inside of our animations folder to play our normal jump animation. And hit save. We'll change the sample rate back to 12, and in the artwork folder, let's take a look for the normal jump. Here, we can drag this texture over to the timeline, and now we have our jump animation. Let's save this, and go back into our animator. You'll also note now that we have a new state. In this case, we're gonna move our player normal jump animation above the any state, and we'll make a transition from any state to the jump animation. We'll also want to select the transition, and go into the settings and make sure to set the Transition Duration to zero, and the…

Contents