O'Reilly logo

Unity 2D Game Development Cookbook by Claudio Scolastici

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

Preparing the character sprites

In this recipe, we will see how the individual sprites belonging to a character are prepared for keyframe animation.

Getting ready

We are going to create an entirely new character for this recipe, so start by creating a new scene in your Unity project.

Next, import the keyframe_anim PNG image we have provided with the contents of this book to the Sprites folder located in Assets. We've done this many times so far. The image contains the blocks to actually build up two characters, an orc and a knight. We will use the knight for this recipe, and once you have learned the process, you can make the orc or even mix the two characters to get something original!

How to do it...

  1. Select the PNG image you just imported. Then set ...

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