Simple Unity Sprite animation

Kasper Møberg Rasmussen
3 min readApr 6, 2021

Animating a sprite in Unity is wonderfully simple to implement, once you have the art.

Here is the speed powerup from the Gamedevhq 2D game course. It’s got the first frame of the animation I want to give it, set in the sprite renderer.

To animate it I simply add the animator component.

Go to my animation window (find it in Window →Animation →Animation if you don’t have it already) and click Create.

Select the place I want to save it and what name to give it, I end my animation file names with _anim for easier search.

Drag the frames the animation needs into the dopesheet, and you’re done.

Well maybe. In my case I want the animation to loop, and I think it’s playing a little too fast so I want to reduce the speed of the animation.

To do this I double click on the Controller that was generated when I created the animation

This opens the Animator, where I can click on the animation and edit the parameters for this animation node, including what animation it should play.
But I just want to reduce the speed of the animation to 0.5.

To make the animation loop I double click on the animation, which opens the animation in the inspector, where I can then enable Loop Time.

--

--

Kasper Møberg Rasmussen

Masters graduate of Learning and experience technology from University of southern Denmark, with a passion for the future of interaction.