Skip to content

Common properties (every node)

Every node has these Transform properties (the Inspector’s Transform section). Origin appears on nodes that draw something around a pivot.

Property Type Default Description
position vec2 (0, 0) Position relative to the parent, in pixels (+y is down).
rotation number 0 Rotation relative to the parent, in degrees (clockwise).
scale vec2 (1, 1) Size multiplier relative to the parent (1, 1 = as is; negative flips).
origin vec2 (0.5, 0.5) Where in the image the position is, and what it rotates and scales around: a fraction of its size (0.5, 0.5 = the centre, 0, 0 = the top-left, 0.5, 1 = the bottom centre).
layer enum: Layer1, Layer2, Layer3, Layer4, Layer5, Layer6, Layer7, Layer8 Layer1 Drawing layer: higher layers draw over lower ones (Layer8 is for UI).
zIndex integer 0 Draw order within the layer, added to the parent’s: higher draws on top (-10, 0, 10…); equal ones keep the tree order.
ySort boolean false Draw the children by their Y position (lower on screen = in front), each with its children: top-down and isometric depth.
ySortOffset number 0 Added to this node’s Y when its parent Y-sorts: move the sorting line to the feet (e.g. half the sprite’s height).
pauseMode enum: Inherit, Pausable, Always Inherit Inherit the parent’s pausing, Pausable (stops when paused) or Always (keeps running, e.g. pause menus).
paused boolean false Pauses this node and its children (except Always ones) while the game runs.
enabled boolean true Disabled nodes (and their children) neither update nor draw.