Animating Sprites in Unity

Renato Figueiredo
2 min readDec 5, 2023

Objective: Learn how to create animations using sprites in Unity.

Now that we have our Powerup completed, we are going to add its animation, to make it more vibrant.

First thing we want to do, is select our GameObject, go to our menu, open the Window tab and select the Animation option, under Animation.

How to open our Animation window in Unity.

You can see that after opening the window, I just moved it to be near the console, making it easier for us to see the animation screen.

Creating our Folder and Animation in Unity.

With our GameObject selected, we can just click on Create and add a folder for our Animations. Afterwards we can just click in the Record button, to make sure we are recording the animation (you can see its on ’cause the timer bar will be Red), select all the Sprites that are used in the animation (you can hold Shift to select multiple items) and just drag them into our Animation Screen.

Our Animator component in our GameObject.

Now our GameObject has an Animator component. You can see that it automatically created a Controller for it, and if we open this Controller, we’ll be faced with this screen.

Animation Controller screen in Unity.

This lets us know how Unity is controlling our animation. In this case, we want to play our animation from the start, without any conditions, and we want our animation to loop.

In our Animation Clip in the Inspector, we can just make sure that Loop is toggled on, meaning it will always loop the animation once its finished.

Animation Clip in Unity.

And there you have it, we just animated our TripleShotPowerup!

Our TripleShotPowerup now has its own animation!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response