Adding Enemy Idle Animation

Niraj Karki
Sep 16, 2021

2D Mobile Game

Objective: Create an idle animation for our enemy.

First of all take your Enemy Idle animation sprite and slice it to the required pixel size which in my case is 512 x 512. After slice, hit apply.

Then just like in your player gameobject, drag the first frame of idle animation in the hierarchy and name it Sprite and create another empty gameobject and give it the enemy name and drag the sprite inside the gameobject.

Now with sprite selected, open the animation tab(ctrl + 6) and select create new clip. Then give the animation a name and save it to your desired location. After that, hit record and drag the all the animation frame to the animation panel and you are good to go.

And this is the result.

--

--