O'Reilly logo

Unity 2D Game Development by Dave Calabrese

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Let's move it!

With the player sprite in the world, let's set up some animations for it. From the sprite sheet, you can probably gather that our player has two animations: idle and walking. If you are at all familiar with Unity's Mecanim system, then this setup will seem familiar to you. If not, no problem—read along and we shall explain in the following steps:

  1. Create a new folder in the Project tab called Animations.
  2. Inside this folder, create another folder called Player.
  3. At the top of the screen, navigate to Window | Animation to open the Animation tab. This is where we will actually build the sprite animations.
  4. Select the player object in the Hierarchy tab then click on the little red circle (the record button) in the top-left corner of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required