In this chapter, the goal for our game is to apply the walk animation when the player is moving. Furthermore, we will prepare the jump animation for the next chapter. To achieve that, we need to set up the rest of the transitions.
In the Animator window, let's add a new transition from
Idle and name it
StopWalking. Then, we need to add a condition that will trigger the transition. This transition will use the parameter PlayerSpeed so that when its value becomes less than one the transition is triggered.
Now that the transitions between
WalkAnim are ready, let's do the same to the
We need to make a transition ...