Creating 2D Animation Sprites

Eric Young
3 min readApr 2, 2022

--

The Untold Story.

Creating a 2D Animation with sprites was a fairly straightforward process.

  • Whether you have images or a sprite sheet they will need a Texture Type of Sprite(2D and UI)
  • You may have a sprite sheet of individual sprites that will have to be ‘cut’ down to its component parts. Else you can leave this Single.
  • Finally hit apply and notice the changes in the Project Window.
  • Now one of the first things I have done is to drag a player sprite into the scene
  • Next I opened the Animation and Animator Windows to make the animations for the ship.
  • With the Player GameObject selected I clicked on ‘Create New Clip…’ in the Animation Window and saved it in a folder in my _Animations folder(Assets -> _Animations -> PlayerAnimations -> Player_LeftTurn)
  • I then select all of the sprite images that make up the LeftTurn Animation into the Animation window. Press play to see the animation in action. adjust the Samples field to slow down the action to get a feel for the action and to set the speed of the transition from sprite to sprite.
  • Hit record to create the animation and Animation Controller. The Animation Controller will be created and attached to the player at this time.

Let’s Make Another Animation by clicking the name of the current animation and selecting ‘Create New Clip…’ and repeating the process for the RightTurn animation.

Drag sprite into scene or hierarchy. Then open the Animation/Animator windows
Create New Clip and then drag sprites into Animation window. Notice Samples field. Be sure to record. Create a new Animation for RightTurn(click on current animation name(located under Preview)

Here is my Animator Controller in action. I have added some Return from (direction) animations to give a more seamless transition from turn to return to center. I have removed ALL exit times with the exception from both Player_NormalFrom(direction)_anim. these were set to .1f.

This setup appears to work well.

Stay tuned for our next exciting episode.

--

--