The most advised way to use sprite sheets is to create and edit them using our dedicated editor.
Our Sprite Sheet Editor as part of our CGE editor. Just right-click within the "Files" browser at the bottom and use New Sprite Sheet command, or double-click on an existing .castle-sprite-sheet
file.
You can create sprite sheet animations in a number of ways:
-
start from an existing .castle-sprite-sheet
file,
-
or add animation from a series of images,
-
or import a ready image atlas,
-
or import a sprite sheet in Starling XML format.
Each animation has its own speed (number of frames per second). You can freely create, modify and rename animations, and move images (frames) between them.
The editor saves sprite sheets in our Castle Game Engine format (.castle-sprite-sheet
extension).
-
points to a texture atlas (which can be any 2D image that Castle Game Engine can read, like PNG or JPG; see Castle Image Viewer docs for the full list)
-
and describes frames within the file, and how they compose the final animation.