In this recipe, we are going to create a sprite sheet using the freely available TexturePacker
application.
Head over to http://bit.ly/Nm0lUd and download TexturePacker
. It is available for Window, Mac OS, and Ubuntu. This recipe uses the Windows version. The sprites used in this example can be downloaded from http://bit.ly/T3odB5. Run through the install and then run TexturePackerGUI
. When prompted, select Use Essential to enable the basic free version.
We are going to create a 256 x 128 sprite sheet using these seven individual 64 x 64 pixel frames of animation, as shown in the following diagram:
Select Edit | Add Sprites, as shown in the following screenshot:
In the resulting dialog box, Ctrl + left-click to select our seven sprites in order and then click on Open.
By default, it will load the sprites to fit as tightly in the sprite sheet as possible. If we want to pack in a grid four sprites widely instead, in the Texture Settings panel...