Sprites

A sprite is a `.gs` file in the root of the project directory, all other `.gs` files (which are inside sub-directories of the project directory, or outside of the project directory, are not sprites.) are header files.

Properties

Sprite properties can be set using statements similar to blocks which set those properties at runtime.

!!! note These statements are top-level, outside any declaration block.

Sprite default X position

Sprite default Y position

Sprite default size

Sprite default direction

Sprite default volume

Set sprite default visibility to hidden

Hide sprite by default.

Set Sprite default rotation style to **left-right**

Set Sprite default rotation style to **all around**

Set Sprite default rotation style to **don't rotate**

Set Sprite layer order

Set the layer order of the sprite. The layer order is the order in which the sprites are drawn, and scripts are executed.