Animating Sprites in Unity

For today’s short article, I’ll be going over how I animated one of the power-ups in my space shooter game.

Setup

I opened up the Animation window:

Next, I selected the Speed Power-up game-object, selected the Animation Tab, and clicked on the create button to create a .anim file which will hold the frame data for animating the blinking power-up shown above.

This will automatically attach an Animator component to the speed power-up game object:

Lastly, I dragged and dropped the animation frames onto the dopesheet:

Thanks for reading :)