Game Development Reference
In-Depth Information
Engage thrusters
Now, we can start creating our character sprite. Let's get started:
1. Let's go to
SimplePlatform
|
Resources
|
Sprites
|
Characters
in the
Project
view and click on the arrow in front of the
Spritesheet
file. Then, we will click on
both the
Idle_0
and
Idle_1
objects and drag it to the
Hierarchy
view. We will see
the pop-up window asking to create a new animation, set the filename to
Idle
,
put it in
SimplePlatform
|
Resources
|
Sprites
|
Animation
, and click on
Save
, as
shown in the following screenshot:
2. Next, we will go to
SimplePlatform
|
Resources
|
Sprites
|
Animation
and click
on the
Idle_0
object and rename it to
PlayerAnimator
.
3. Then, we go back to
SimplePlatform
|
Resources
|
Sprites
|
Characters
in the
Project
view and click on the arrow in front of the
Spritesheet
file. After that, we
will click on all
Walk
objects from
Walk_0
to
Walk_7
(eight objects in total), and
drag them to the
Idle_0
game object in the
Hierarchy
view. We will see the pop-