Return to site

Create Spritesheet

broken image


  1. Create Sprite Sheet Photoshop
  2. Create Sprite Sheet From Png
  3. Create Sprite Sheet In Gimp
  • The exported sprite sheet image will be as a transparent PNG by default but you may wish to open and re-export to a.jpg or other format for better compression. If you need the transparency and are happy to stick with a.png for your sprite sheet, I would recommend running this through a.png optimiser such as tinypng.org.
  • In this section you will find a collection of Free and Premium game character sprite sheets for arcade, platformer, casual, RPG, and many others. If you want to create your own 2D game and you need characters, our assets would suit you. We are constantly adding new graphics, to provide you with more unique products. Welcome to craftpix.net.

23 February, 2014 by Tom Elliott

Create Spritesheet

How To Create A CSS Sprite Sheet In Adobe Animate CC. Creating the sprite sheet is a rather uncomplicated process. All you need to do is to Right Click on the starlingflight movieclip and, when the Context Menu opens, select Generate Sprite Sheet. This will open the Generate Sprite Sheet dialog box.

Notice: Undefined index: width in /var/www/vhosts/tomelliott.com/httpdocs/wp-includes/media.php on line 1593
Notice: Undefined index: height in /var/www/vhosts/tomelliott.com/httpdocs/wp-includes/media.php on line 1594

A sprite sheet is basically a collection of individual images (or frames) arranged together as a single image. By quickly moving the position of the sprite sheet at timed intervals within a viewport, an animation can be created.

Sprite sheets are used in all kinds of software and are commonly used in web development for framed animation. There are some specific tools and online services that can help create sprite sheets, but if you're using PhotoShop you can make this process really easy using the below steps.

This article will run through the process of how to automate sprite sheet creation in PhotoShop using a series of individual images for each frame in an animation, such as the sprite sheet below which I'm using for the new Web Dev Door website. These frames were initially created using 3D software.

Sprite Sheet made of 8 frames used for a 3D ripple effect

Spritesheet

How To Create A CSS Sprite Sheet In Adobe Animate CC. Creating the sprite sheet is a rather uncomplicated process. All you need to do is to Right Click on the starlingflight movieclip and, when the Context Menu opens, select Generate Sprite Sheet. This will open the Generate Sprite Sheet dialog box.

Notice: Undefined index: width in /var/www/vhosts/tomelliott.com/httpdocs/wp-includes/media.php on line 1593
Notice: Undefined index: height in /var/www/vhosts/tomelliott.com/httpdocs/wp-includes/media.php on line 1594

A sprite sheet is basically a collection of individual images (or frames) arranged together as a single image. By quickly moving the position of the sprite sheet at timed intervals within a viewport, an animation can be created.

Sprite sheets are used in all kinds of software and are commonly used in web development for framed animation. There are some specific tools and online services that can help create sprite sheets, but if you're using PhotoShop you can make this process really easy using the below steps.

This article will run through the process of how to automate sprite sheet creation in PhotoShop using a series of individual images for each frame in an animation, such as the sprite sheet below which I'm using for the new Web Dev Door website. These frames were initially created using 3D software.

Sprite Sheet made of 8 frames used for a 3D ripple effect

Step 1 – Install the PhotoShop Exporter

You can download and install the PhotoShop Sprite Sheet Exporter extension here, (from asousa.com). Unzip and install via Adobe Extension Manager.

There are a number of in-built methods within PhotoShop that may get you close to a decent sprite sheet, such as ‘Contact Sheet' and ‘PhotoMerge' functions. I've found the Sprite Sheet Exporter plugin to be the best method so far. This should work for most versions of PhotoShop and works well in PhotoShop CS5 and CS6.

Step 2 – Import frames as layers.

Before we can use the Sprite Sheet exporter, we need all our individual frames on separate layers within PhotoShop, with the first frame as the top layer and last frame as bottom. The easiest way I've found to do this is to follow these steps:

Create Sprite Sheet Photoshop

  1. Use the ‘load files into stack' script under Files->Scripts
  2. Browse to the folder containing your individual frame images
  3. Select all the images you want to import.

Loading images to separate layers using ‘load files into stack' script

The stacking script will take a number of seconds to run depending how many images are selected, as the script has to open, create a new layer, paste and close each image that is being imported. Images are stacked into layers by name, so a good idea to name your frames sequentially i.e. image001.png, image002.png etc.

We should now have all our frames as separate layers, with the top most layer the one which will be the first frame our sprite sheet. If layers have imported in the wrong order, we can quickly reverse the layer stack by selecting all layers and going through the menu options Layer->Arrange->Reverse.

Don't worry if your images are different sizes either; when the sprite sheet is created, the exporter will pack each image with an equal width and height between each frame. This is what we want with a sprite sheet, as we don't have to manually declare the position of each frame when animating.

Step 3 – Creating the sprite sheet

Now that you have each image as an individual layer, save your file and run the ‘Sprite Sheet Exporter' script from Files->Scripts. The resulting sprite sheet will be created and saved in the same place as your saved file.

The exported sprite sheet image will be as a transparent PNG by default but you may wish to open and re-export to a .jpg or other format for better compression. If you need the transparency and are happy to stick with a .png for your sprite sheet, I would recommend running this through a .png optimiser such as tinypng.org.

Optimising png images not only reduces file size but can make your animations run smoother.

14 Comments

This is nice! I have a few other scripts I tried but they're all glitchy. I'd love to see this with some extended capabilities like being able to select the number of rows and columns. This is very important because OpenGL texture limitations on some devices. Thanks for the work though!

Adobe Extension Manager allows me install only files with suffix *.zxp, not *.mxp. Can You advise any solution, please? 🙂

For those looking to use this in Photoshop CC, refer to these instructions provided by Adobe:

Note:
MXP extensions are no longer supported by Extension Manager CC. To install MXP extensions for Adobe applications, you have to convert them to ZXP extensions first. You can use Extension Manager CS6 to convert MXP extensions to ZXP extensions. Extension Manager CS6 can be downloaded from http://www.adobe.com/exchange/em_download/.

I found this note here: http://helpx.adobe.com/extension-manager/using/downloading-installing-extensions.html

I am getting an error to save the file first ? :S why is it so ??
the file is already saved before running the script. please need help

This is a f*** awesome pugin that you have there!

I am excited to try this but When I do, it gives me the 'Error 1302: No Such Element' Line: 35
-> var dom = app.activeDocument;

How do I go about resolving this?

@MrBalin, try this one https://github.com/rraallvv/Layer2SpriteSheet. Cheers!

Not Showing ‘Sprite Sheet Exporter' option in photoshop cs6
Any solutions.

Leave a Reply

Create Sprite Sheet From Png

SpriteSheet Packer is a GUI and command line tool to create sprite sheets.

Supported operating systems: MacOS, Windows and other QT supported platform.

SpriteSheet Packer is MIT license, open source project intended to help the beginning developers.Uses QT with LGPL license.

Create Sprite Sheet In Gimp

Download pre-build release version. Music recorder 1 1 2.

Follow this steps for compile from sources:

  • Download and install QT with Qt Creater
  • Clone sources from https://github.com/amakaseev/sprite-sheet-packer
  • Open sprite-sheet-packer.pro, compile and run SpriteSheetPacker.

GUI

Creating your first sprite sheet

  • Run SpriteSheetPacker with out arguments
  • Press Add sprites or Add smart folder on toolbar or menu
  • Set Destination folder in Output group on Property
  • Enter sprite sheet name
  • Press Publish sprite sheet on toolbar or menu

Command Line

Usage: SpriteSheetPacker [options] source destination

OptionsDescription
-h, --helpDisplays this help.
-v, --versionDisplays version information.
-f, --format Format for export sprite sheet data. Default is cocos2d.
--texture-border Border of the sprite sheet, value adds transparent pixels around the borders of the sprite sheet. Default value is 0.
--sprite-border Sprite border is the space between sprites. Value adds transparent pixels between sprites to avoid artifacts from neighbor sprites. The transparent pixels are not added to the sprites, default is 2.
--trim Allowed values: 1 to 255, default is 1. Pixels with an alpha value below this value will be considered transparent when trimming the sprite. Very useful for sprites with nearly invisible alpha pixels at the borders.
--powerOf2Forces the texture to have power of 2 size (32, 64, 128..). Default is disable.
--max-size Sets the maximum size for the texture, default is 8192.
--scale Scales all images before creating the sheet. E.g. use 0.5 for half size, default is 0.5.
ArgumentsDescription
sourceSource folder with sprites for packing.
destinationDestination folder where saving the sprite sheet.

Example:

$ SpriteSheetPacker /alekseymakaseev/Character /alekseymakaseev/testResources --trim 2 --scale 0.5





broken image