Sprites are the visual aspect of the level pack, and are used in most of the other assets as well, such as particles and objects.
As a result, sprites should be the first thing added into the level pack, the syntax is as follows.
"variable = add_sprite(file, transparency, x origin, y origin, number of frames)"
This will store the sprite in memory, to be used by other scripts and functions...
Argument |
Function |
File |
The file that will be loaded into memory. (*png, *jpg and *bmp only!) |
Transparency |
Will the sprite's background be removed? The background colour is the bottom right pixel. (0 - no, 1 - yes) |
X Origin |
The x origin of the sprite, mainly used for rotation, for particles and detail sprites. (Does not affect objects at all.) |
Y Origin |
The y origin of the sprite, mainly used for rotation, for particles and detail sprites. (Does not affect objects at all.) |
Number of Frames |
The number of sprites in the image, when using an animated sprite for particles and detail sprites, this determines the number of frames in the animation. (Does not affect objects at all.) |
When editing the sprite in the authoring tools, the tool will look like this...

|