Skip to main content

Engine Fields

Engine Field Update

Change the value of an Engine Field.

References
/docs/settings#engine-settings

Engine Field Update
Engine Field
Jump Velocity
$Variable0
  • Engine Field: The engine field to update.

Store Engine Field In Variable

Store the value of an Engine Field in a variable.

References
/docs/settings#engine-settings

Store Engine Field In Variable
Engine Field
Jump Velocity
Variable
$Variable0
  • Engine Field: The engine field to read the value of.
  • Variable: The variable to use.

Adventure

Attach Script To Adventure Event Callback

Run the specified script any time the state of an adventure scene changes.

Attach Script To Adventure Event Callback
Event
Start Grounded
On State
On State
Add Event
  • Event
  • On State: On State

Remove Script From Adventure Event Callback

Remove an attached script from an adventure scene state change.

Remove Script From Adventure Event Callback
Event
Start Grounded
  • Event

Set Adventure State

Set the current state of an adventure scene.

Set Adventure State
State
Grounded
  • State

Control Flow

If Engine Field Compare With Value

Conditionally run part of the script based on the value of an engine field compared with a value.

If Engine Field Compare With Value
Condition
$Variable0
==
0
True
Add Event
Else
  • Condition: The condition to evaluate.
  • True: The script to run if the condition is true.
  • False: The script to run if the condition is false.

If Engine Field Compare With Variable

Conditionally run part of the script based on the value of an engine field compared with a variable.

If Engine Field Compare With Variable
Condition
$Variable0
==
$Variable0
True
Add Event
Else
  • Condition: The condition to evaluate.
  • True: The script to run if the condition is true.
  • False: The script to run if the condition is false.

Platformer

Attach Script To Platformer Event Callback

Run the specified script any time the state of a platformer scene changes.

Attach Script To Platformer Event Callback
Event
Start Falling
On State
On State
Add Event
  • Event
  • On State: On State

Remove Script From Platformer Event Callback

Remove an attached script from a platformer scene state change.

Remove Script From Platformer Event Callback
Event
Start Falling
  • Event

Set Platformer State

Set the current state of a platformer scene.

Set Platformer State
State
Falling
  • State