Animating Sprites in Unity
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.

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.

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.

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.

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.

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