by DST » Sat May 10, 2008 9:26 pm
First you should determine the size of the sprite. This is the largest frame of the animation.
Then you create a file in your graphics editor that is 9x that width and 1x that height.
Then copy/paste each of your images into that new image, making sure they are spaced evenly across the image, and in order. When I say evenly spaced, I mean to either the center or the bottom of the image. This depends on what you want the character to do. For instance, if a character stabs forward with his sword, he becomes slightly 'wider', right?
In that case, align the feet of the character in each frame. Make sure his sword doesn't extend into the next frame. If he stabs upward...he becomes 'taller'. Once again, align by the 'feet' of the image.
For an explosion, however, you want to align to the Center of each frame. Does that make sense?
Then save it and load the image into GE, specifying (for your 9 frame example) horizontal frames: 9. Vertical frames: 1.
Set the animation speed and there you go!
Here are a couple of examples. Hope I've helped!
- Attachments
-
-