Make an Animation with Sprites- Game Dev Series 16

Objective: Make an animation to our triple shot powerup.

Previous: Feeling Like A Real Video Game!

Our powerup is great, except it looks dull.
In Unity, there is a strong system to create animation for 2D sprite. We can use it to our powerup.

To add an animation, we need to open the animation window by clicking the drop down menu of Window and select Animation> Animation.

Then drag the Triple_Shot_Powerup prefab into hierarchy, and click Create in Animation window while the prefab was selected. Then give a name to this animation.

Now you can see the animation timeline. To create an animation, we need to click the recording button, then import the animation sprites.

We can press the Play in animation window to check the animation.

Go to Inspector window and you will notice that there is a new component called Animator has been created automatically.

Don’t forget to override and delete!

You got a pretty unique animated powerup now.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
S.J. Jason Liu

S.J. Jason Liu

99 Followers

A passionate gamer whose goal is to work in video game development.