Creating a "Sprite Sheet"

Discuss game development design and post your game ideas

Post » Mon Feb 24, 2014 1:03 am

I have had some luck creating a character and doing some animations but I find that I'm saving them as individual files (w/ each file being a little different than the previous). A few of the tutorials (i.e. Intro to Platform Game) showcases a Sprite Sheet. Is there an easy way to create these sprite sheets and the ability to make the delta changes to create an animation (i.e. walking may have 20 animation frames with each animation slightly different than the previous one).

Just curious to know how you guys are tackling the basics of animations and creating Sprite Sheets.

Thanks,
Stephen
B
20
S
6
Posts: 27
Reputation: 1,878

Post » Mon Feb 24, 2014 4:25 pm

One nice, simply way to turn your individual files into a sprite sheet is as follows:
1- Open any graphic editor which can set a grid size and snap to it (Photoshop and Gimp work great).
2- Create a new file with the size of the page a multiple of the width and height of your original images (ie - if your animation images are 5x5 and you have 5 of them, make the page 25x5).
3- Set the grid size to the size of the images and turn on snap to grid
4- Import all the images into the sprite sheet.
5- Drag each image into the correct position in order. With snap to grid on, they will fall right into where you want them.
6- Export to the file type you want to use.
You now have a sprite sheet to use in your game.

Hope that helps.
B
40
S
12
G
11
Posts: 331
Reputation: 7,752

Post » Sat Mar 08, 2014 1:45 pm

Another way is using animation programs. I use Anime Studio, you can set up your sprite with a bone structure in order to create the animation. You export these as PNG files and load them into Construct and you got yourself a flawless animated sprite. When you export the game, construct will create it's own spritesheets, so there's no really use in creating one.
B
20
S
5
G
1
Posts: 148
Reputation: 1,736

Post » Thu Apr 17, 2014 2:37 pm

A litte late to the party, but Frag had a great idea on how to do it.

Here's a little nifty back-way in GIMP, if your familiar with it.

Seperate images. First, select file>open as layers. Then, select all your image's (shift click), and import them. Now you'll want to head to Filters > Combine > Filmstrip.

Here you can leave all the base settings, and click ok. It will generate a perfectly spaced long image on a film looking layer, including all of your photo's.

After this, you'll want the layers option at the top. You'll want to click add layer, then make sure it's a transparency, and click ok. Now, you'll want the same option, and select merge down.

When that's done, you'll want to grab the RGB select tool (looks like a pointed finger on the toolbar), and shift click the black, and white areas around your images (part that looks like film), and hit delete.

This should leave you with a well spaced, single row of your images.

Also, you might try googling "Glue it". this is a wonderfully small, free program, that will automatically allow you to add individual sprite pictures, and assemble them in order (based of what they are named (just remember to name files 1, 2, 3, ect) in order), and create nice little quick spritestrip.

Sorry for the mouthful, but don't let all that turn you off. After your used to it, you can do all those steps in about 30 seconds without a problem :).
B
3
S
1
Posts: 54
Reputation: 433


Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 0 guests