For a long time, I’ve been making sprite sheets by opening up my trusty old now discontinued Adobe fireworks (never could get the hang of photoshop). I would evenly space out individual images, resizing and repositioning until it was just right. There may be sometimes I will still do this, but more than likely I will use a brilliant piece of software called TexturePackerGUI<\/a>They have both free and paid versions.<\/p>\n <\/p>\n <\/p>\n While I have the pro version, I mostly bought it because the artists in my office have the pro version and I needed to open their files. For my own stuff, I probably could have gotten by with the free version, the artists I work with insist on having the paid features. I won’t go into all the details between the two. I suggest starting with the free version and check it out for yourself.<\/p>\n <\/p>\n TexturePackerGUI is a powerful program with many options, so there are a lot of ways to set up your sprite sheet. I’m going to take you through how I do it 99% of the time.<\/p>\n <\/p>\n First I select my images, and always make sure they are numbered or have a number on the end. This helps when you need to refer to the frame number later in the code.<\/p>\n Next, open up\u00a0TexturePackerGUI and drag your images into the empty pane on the right.<\/p>\n When I dragged the bird images into the software it showed me that 8 frames would not fit inside one single sheet.<\/p>\n When I looked at the size I could see that the image was much too big for my game. I took up about 80% of my screen.<\/p>\n So I decided to resize all images to 25% of the original and they all fit fine onto one sheet.<\/p>\n There are several different layout settings but I almost always set the algorithm to basic and sort by to Name.<\/p>\n Why do I do this? Remember that I end filename with a number? Doing it this way will keep those in order.<\/p>\n If I am making a card game, for example, I want frame 0 to be an ace and frame 1 to be a 2. If I am making a tile-based game with letters, I want the frame 0 to be an A and frame 1 to be a B, and so forth.<\/p>\n Your game may differ so feel free to choose the optimization\u00a0that works best for your game, but this is what works well for me.<\/p>\n Note: It may be that things are still kept in order in the file, but not in the image. Looking into this.<\/p>\n If your data settings\u00a0don’t say Phaser, then click the file format button and a selection list will appear in the middle.<\/p>\n Select Phaser(JSONArray)<\/p>\nFree or Pro?<\/h3>\n
How to make a sprite sheet<\/h3>\n
1. Select Images<\/h3>\n
<\/p>\n
2. Drag Images into the GUI<\/h3>\n
<\/p>\n
3. Resize if needed<\/h3>\n
<\/p>\n
<\/p>\n
<\/p>\n
4. Select settings<\/h3>\n
<\/p>\n
5. Export files<\/h3>\n