Game Development Reference
In-Depth Information
up window asking us to create the new animation again, set the filename to
Walk , put it in SimplePlatform | Resources | Sprites | Animation , and click on
Save .
4. In the Spritesheet file in the Project view, we will click on Jump_0 and Jump_1
and drag them to the Idle_0 game object in the Hierarchy view. We will see the
pop-up window asking us to create the new animation again, set the filename to
Jump , put it in SimplePlatform | Resources | Sprites | Animation , and click on
Save .
5. We will do the same as the last step, but this time we will click on Jump_1 and
Jump_2 , and drag them to the Idle_0 game object in the Hierarchy view. We
will see the pop-up window asking us to create the new animation again, set the
filename to Fall , put it in SimplePlatform | Resources | Sprites | Animation ,
and click on Save .
6. Next, we will go to SimplePlatform | Resources | Sprites | Animation in the
Project view. Then, we will click on the Fall and Jump animation, go to their In-
spector view, and uncheck Loop Time for both clips, as shown in the following
screenshot:
7. Then, we go to the Hierarchy view, rename Idle_0 to Player , go to its Inspect-
or view, and set the values of the attributes as follows:
Search WWH ::




Custom Search