Node Reference
All 67 built-in nodes, organized by category. Click any node to see its full documentation.
Triggers 5
Entry points. Every chain of statements hangs off one of these.
On Every Frame
Entry point: the chain wired to it runs once on every rendered frame.
On First Frame
Entry point: the chain wired to it runs once, when the game starts.
On Fixed Interval
Entry point: the chain wired to it runs on the fixed physics timestep.
On Receive Event
Entry point: the chain wired to it runs when an event with the given name is received.
On Enter
Entry point: the chain wired to it runs when another object enters or overlaps this one.
Control Flow 7
Branches, loops and error handling.
If
Runs one of two branches depending on a boolean condition.
While
Runs a branch over and over for as long as a condition holds.
For
Counts from a start to an end in fixed steps, running a branch each time.
Repeat
Runs a branch a fixed number of times.
Try / Catch
Runs a branch, and diverts to a second one if it throws.
Throw
Raises an error with a message of your choice and stops the chain.
Exit
Stops the current chain early, without raising an error.
Transform 7
Move, turn and resize the object the script is attached to.
Translate
Moves the object by an x, y, z offset, ignoring physics.
Move
Moves the object by an x, y, z offset, colliding and sliding along the way.
Rotate
Turns the object by x, y, z degrees.
Set Position
Places the object at an absolute x, y, z. A teleport.
Set Rotation
Sets the object's rotation to absolute x, y, z euler angles, in degrees.
Scale
Multiplies the object's scale by x, y, z factors.
Set Scale
Sets the object's scale to an absolute x, y, z.
World 3
Reach past this object: events, other games, sound.
Input & Time 5
Read the keyboard, the mouse and the clock.
Keycode
A keyboard key, picked from a visual keyboard, as its int keycode.
Key Pressed
True for as long as a key is being held down.
Key Just Pressed
True only on the single frame a key goes down.
Mouse Offset
How far the mouse moved on one axis since the last frame, in pixels.
Time Since Start
Milliseconds since the game started, as a float.
Variables & Fields 5
Literals, script variables, and fields on the object's components.
Value
A literal value typed straight into the node.
Variable
Reads one of the script's variables.
Set Variable
Writes a value into one of the script's variables.
Get Field
Reads a field of a component on the object this script is attached to.
Set Field
Writes a field of a component on the object this script is attached to.
Math 13
Arithmetic on two ints or two floats.
Add
Adds two numbers.
Subtract
Subtracts the second number from the first.
Multiply
Multiplies two numbers.
Divide
Divides the first number by the second.
Modulo
The remainder of a division.
Min
The smaller of two numbers.
Max
The larger of two numbers.
Abs
Distance from zero, dropping the sign.
Floor
Rounds a float down to the nearest whole number.
Ceil
Rounds a float up to the nearest whole number.
Trunc
Drops the fractional part of a float, rounding toward zero.
Round
Rounds a float to the nearest whole number.
Sqrt
The square root of a float.
Trigonometry 3
Sine, cosine and tangent, in degrees by default.
Logic & Comparison 10
Booleans, comparisons, and picking between two values.
Not
Flips a boolean.
And
True when both inputs are true.
Or
True when either input is true.
= (Equality)
True when the two inputs are equal.
≠ (Inequality)
True when the two inputs differ.
< (Less Than)
True when the first number is smaller than the second.
≤ (Less Than or Equal)
True when the first number is smaller than or equal to the second.
> (Greater Than)
True when the first number is larger than the second.
≥ (Greater Than or Equal)
True when the first number is larger than or equal to the second.
Select
Picks one of two values depending on a condition.
Conversion 4
Move a value from one type to another. Nothing converts implicitly.
Strings & Arrays 3
Strings and arrays.
Annotations 2
Visual aids with no pins. They document a script, they never change it.