For example, I created my character drawing on Paint.NET using the Pencil tool and now it's a sprite like asset.

If I want him to move do I need to create many different poses for him and render them according a timer? Or do I need to have each pose side by side in a single image, then render the rectangle I need, thus loading the picture only once?



Usually you try to have them in a single file(maybe even fit multiple characters/backgrounds in just 1 image) and then do all the magic in memory.

This files with a lot of images are called Sprite Sheets and you can find a lot of them online.

There are many tools out there to manage sprites and aprite sheets both language/framework specific or general use.

Some of the things to consider is if you have things of different sizes, perspectives, how do you represent that information about the sprite sheet.

Depending on the platform and type of game it might be more or less important to use optimization in this area, I would suggest to always Keep It Simple if possible.

  • \$\begingroup\$ any recommendations on Sprite tools? (for creating sprites, as I can never get the center just right or even to manage them XNA/C# related would be awesome) \$\endgroup\$ – Spooks Oct 7 '10 at 12:41
  • 1
    \$\begingroup\$ @Spooks, i am not a good artis so I have little experience with sprite creation, I try to get all my sprites from the Creative Commons world(great link: gamedev.stackexchange.com/questions/20/…) but when I need something really specific I use pixen. It has layers, and that for me is REALLY important, it makes it easier for me to have a layer for each part and be able to turn it on/off really easy. It is a mix between paint and gimp, exactly where I need it to be. \$\endgroup\$ – DFectuoso Oct 7 '10 at 16:13
  • \$\begingroup\$ pixen looks great, except im not running a Mac:( thanks for the link tho! \$\endgroup\$ – Spooks Oct 8 '10 at 13:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy