Page 1 of 1

Making a sprite sheet

PostPosted: Sat May 10, 2008 7:38 pm
by catacomber
I have 9 images that make up an animation and I'd like to make one sprite sheet out of them but don't have a clue how to do it. Any hints? I'm searching in google but haven't found anything that really helps.

Re: Making a sprite sheet

PostPosted: Sat May 10, 2008 9:26 pm
by DST
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!

Re: Making a sprite sheet

PostPosted: Sat May 10, 2008 9:50 pm
by catacomber
Yes, that's very helpful cause it would give some flexibility.

Have you ever used a utility like XNView?

http://pagesperso-orange.fr/pierre.g/xn ... win32.html

Don't know if it's as good as making it as you did above but it worked -- until I saw your explanation above which I think might be a better solution. Thanks.

Re: Making a sprite sheet

PostPosted: Sun Jul 13, 2008 7:38 pm
by Murd-Machine[_]
It might sound strange, but I use Game maker built-in graphic editor for this. It can save any animation as stripe.

Re: Making a sprite sheet

PostPosted: Sun Jul 13, 2008 7:47 pm
by DST
The problem with that kind of animating is that its pixel art, which only makes very basic images.

When you make real art, with inkscape or illustrator, you can arrange them in the proper positions before you even export. In that case you wouldn't even need the graphic editor.
blacknight.png

Could you make that with a built-in sprite editor,
and then give it 15 frames of animation?

Re: Making a sprite sheet

PostPosted: Wed Jul 16, 2008 9:40 am
by Bee-Ant
Why dont you make apps with GE which can help you working in GE???

Re: Making a sprite sheet

PostPosted: Wed Jul 16, 2008 7:43 pm
by segwego12
Go get apps.

Re: Making a sprite sheet

PostPosted: Wed Jul 16, 2008 10:48 pm
by Thanx
Creating apps for GE is a nice idea, and creating a group of apps to go together to make a big tool is what makes some systems or programs nice out there,but with makslane as the only developer, I'd tell him just to concentrate on developing GE itself right now
We've got dozens of image, sound, sprite editors around at the moment anyway, we can live with them for now... :D