Game Development Reference
In-Depth Information
clip and choose
Make Transition
, which will bring up the arrow, and click-and-
drag again on top of the
Walk
clip. We will see the arrow line link from the
Idle
clip to the
Walk
clip, as shown in the following screenshot:
12. Then, we want to click on the arrow line that we just created and go to
Inspector
|
Conditions
and set
Speed
to a value greater than 0.1.
13. Next, we will create the transition back from the
Walk
to
Idle
animation. So, let's
right-click on the
Walk
clip, choose
Make Transition
, and then click-and-drag
on
Idle
. Then, we will click on the arrow line again to go to the
Inspector
and set
a value less than 0.1 for
Speed
in the
Conditions
view.
14. Then, we set up the rest of the animation. This time we want the transition from
Walk
to
Fall
. So, let's right-click on the
Walk
clip, choose
Make Transition
, and
then click-and-drag on
Fall
. After that, we will click on the arrow line again to go
to
Inspector
and set the
Conditions
view to
Fall
.
15. Also, we will create the transition from
Fall
back to
Walk
, go to the transition
In-
spector
, click on the plus icon to add another condition and set
Speed
as well as
Ground
to a value greater than 0.1.
16. Next, we want the
Idle
clip transition to
Fall
. Let's create the transition arrow
from
Idle
to
Fall
, go to
Inspector
, and set the
Conditions
view to
Fall
.
17. We also need to create the transition from
Fall
back to
Idle
, set up its
Inspector
view, click on the plus icon to add another condition, and set
Speed
to a value
less than 0.1.
18. Then, we will create the transition arrow from
Idle
to
Jump
and set up its
In-
spector
view by setting its
Conditions
view to
Jump
.
19. Next, we create the transition arrow from
Walk
to
Jump
and set up its
Inspector
view by setting its
Conditions
view to
Jump
.