Animating Sprites in Unity

Ameen Mohmand
2 min readOct 24, 2022

--

Objective: How to Animate Sprites in Unity.

Today were gonna have some fun by creating our first Sprites animations in Unity. For starters in our Space Shooter game were gonna login in to file base so we can get the assets from file base. Then were gonna download the assets and import them into Unity. Once you have imported your Space Shooter assets you have access to 2D Sprites now in your Project pane. The first thing you will notice in your imports is all the sprites you have access to like explosions and sprites for your player to turn left and up and down. Let’s not forget about the Power-up sprites and laser sprites including your background layover. You can see all that below and in the video gif.

Next lets head back down into our project pane and add a player sprite to our 2D Space Shooter. Click on player_Turn_left drop down and select the sprite Player_Turn_Left0000 and drag it into your Hierarchy pane. Next right click on your Player_Turn_Left0000 and rename it to Player. Now lets resize the scale of player to 0.5. Just before we resize our player lets not forget to to copy and paste our new player script components on to the new player. Then go ahead and delete the old player. Now that we have done that make sure to tag the player. We should be able to control player. One thing you will notice is the player is behind the background sprite again. To fix the issue we need to make sure the player is on top by changing the background to foreground to remedy this issue. Now you can see we are slowly changing our game from 3D to 2D sprites from our background to our player. This how you animate sprites in Unity.

--

--