Skip to main content

Conditions

Conditions are the WHEN / IF part of an event. All conditions of an event must be true for its actions to run (or any of them, in an OR block). A condition about an object picks the instances that match, so the actions only affect those. See How events work.

Legend
  • ⚡ Trigger runs at the moment something happens (not every frame). It can’t be inverted.
  • 🔁 Loop repeats the rest of the event.
  • Most other conditions can be inverted (NOT) from the condition’s menu.

There are 135 conditions, grouped by category as in the condition picker.

⚙️ System · 🔢 Variables · ⏱️ Time · 🎬 Scene · 🔄 Loops · 🎮 Input · 📦 Object · 🔀 Animator · 🎬 Timeline · 🌐 Language · 🏆 Services · ♨️ Steam · 🔗 Web · 👥 Multiplayer · 🧱 Physics · ❤️ Health · ➰ Curve · 🖼️ UI · ✨ Particles · 🔊 Audio · 🎥 Camera · 🎚️ Graphics

⚙️ System​

On start of scene​

On start of scene ⚡ Trigger

Runs once when the scene starts.

  • Where: Found under System in the picker.
  • ID: system.onStart (as saved in project files)
  • Parameters: none

Every tick​

Every tick

True every frame (about 60 times per second).

  • Where: Found under System in the picker.
  • ID: system.everyTick (as saved in project files)
  • Parameters: none

Compare two values​

‹First value› ‹Comparison› ‹Second value›

Compare any two expressions, e.g. Player.x > 10.

  • Where: Found under System in the picker.
  • ID: system.compare (as saved in project files)
ParameterTypeDefaultNotes
First valueExpression0
ComparisonChoice=Options: =, ≠, <, ≤, >, ≥
Second valueExpression0

Is true​

‹Expression› is true

True when the expression is true (or not 0).

  • Where: Found under System in the picker.
  • ID: system.isTrue (as saved in project files)
ParameterTypeDefaultNotes
ExpressionExpressiontrue

Is between​

‹Value› is between ‹Min› and ‹Max›

True when a value is between min and max (inclusive).

  • Where: Found under System in the picker.
  • ID: system.isBetween (as saved in project files)
ParameterTypeDefaultNotes
ValueExpression0
MinNumber (expression)0
MaxNumber (expression)10

Random chance​

‹Percent›% chance

True randomly, e.g. 25 = one time in four.

  • Where: Found under System in the picker.
  • ID: system.chance (as saved in project files)
ParameterTypeDefaultNotes
PercentNumber (expression)50

Trigger once while true​

Trigger once while true

Put last: the event runs only once each time the other conditions become true.

  • Where: Found under System in the picker.
  • ID: system.once (as saved in project files)
  • Parameters: none

Group is active​

Group ‹Group› is active

True if the event group is active.

  • Where: Found under System in the picker.
  • ID: system.isGroupActive (as saved in project files)
ParameterTypeDefaultNotes
GroupEvent group

Has saved game​

Slot ‹Slot› has a saved game
  • Where: Found under System in the picker.
  • ID: system.hasSaveGame (as saved in project files)
ParameterTypeDefaultNotes
SlotTextSave 1

On game saved​

On game saved ‹Slot (empty: any)› ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: system.onGameSaved (as saved in project files)
ParameterTypeDefaultNotes
Slot (empty: any)TextOptional.

On game loaded​

On game loaded ‹Slot (empty: any)› ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: system.onGameLoaded (as saved in project files)
ParameterTypeDefaultNotes
Slot (empty: any)TextOptional.

On load failed​

On load failed ‹Slot (empty: any)› ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: system.onLoadFailed (as saved in project files)
ParameterTypeDefaultNotes
Slot (empty: any)TextOptional.

🔢 Variables​

Compare variable​

‹Variable› ‹Comparison› ‹Value›

Compare a global or scene variable with a value.

  • Where: Found under System in the picker.
  • ID: system.compareVar (as saved in project files)
ParameterTypeDefaultNotes
VariableVariable
ComparisonChoice=Options: =, ≠, <, ≤, >, ≥
ValueExpression0

Compare instance variable​

‹Object›.‹Instance variable› ‹Comparison› ‹Value›

Compare one of the object's own variables (e.g. hp).

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.compareVar (as saved in project files)
ParameterTypeDefaultNotes
Instance variableVariableAn instance variable of the object.
ComparisonChoice=Options: =, ≠, <, ≤, >, ≥
ValueExpression0

⏱️ Time​

Every X seconds​

Every ‹Seconds› seconds

True once every few seconds.

  • Where: Found under System in the picker.
  • ID: system.every (as saved in project files)
ParameterTypeDefaultNotes
SecondsNumber (expression)1

On timer finished​

Timer ‹Timer name› finished ⚡ Trigger

True at the moment a timer started with "Start timer" runs out.

  • Where: Found under System in the picker.
  • ID: time.timerFinished (as saved in project files)
ParameterTypeDefaultNotes
Timer nameTexttimer

Timer is running​

Timer ‹Timer name› is running

True while a timer is counting down.

  • Where: Found under System in the picker.
  • ID: time.isTimerRunning (as saved in project files)
ParameterTypeDefaultNotes
Timer nameTexttimer

Compare scene time​

Scene time ‹Comparison› ‹Seconds› s

Compare the seconds since the scene started.

  • Where: Found under System in the picker.
  • ID: time.compareTime (as saved in project files)
ParameterTypeDefaultNotes
ComparisonChoice=Options: =, ≠, <, ≤, >, ≥
SecondsNumber (expression)10

🎬 Scene​

On loading complete​

On loading complete ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: scene.onLoadComplete (as saved in project files)
  • Parameters: none

On end of scene​

On end of scene ⚡ Trigger

Runs once when the scene ends (changing or restarting scene).

  • Where: Found under System in the picker.
  • ID: scene.onEnd (as saved in project files)
  • Parameters: none

🔄 Loops​

Repeat​

Repeat ‹Times› times 🔁 Loop

Runs the actions and sub-events several times. Use loopIndex for the current number.

  • Where: Found under System in the picker.
  • ID: system.repeat (as saved in project files)
ParameterTypeDefaultNotes
TimesNumber (expression)3

For​

For ‹Loop name› from ‹From› to ‹To› 🔁 Loop

Repeats the rest of the event, counting from start to end (both included). Use loopindex("name") for the current number.

  • Where: Found under System in the picker.
  • ID: system.for (as saved in project files)
ParameterTypeDefaultNotes
Loop nameTexti
FromNumber (expression)0
ToNumber (expression)9

While​

While 🔁 Loop

Repeats the rest of the event as long as the conditions after it are true (or until "Stop loop").

  • Where: Found under System in the picker.
  • ID: system.while (as saved in project files)
  • Parameters: none

For each​

For each ‹Object› 🔁 Loop

Run the actions and sub-events once for every instance, one at a time.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.forEach (as saved in project files)
  • Parameters: none

🎮 Input​

Button is held​

Button ‹Button› is held

True while an on-screen button (or key) is held down.

  • Where: Found under Input in the picker.
  • ID: input.buttonDown (as saved in project files)
ParameterTypeDefaultNotes
ButtonTouch buttonjump

On button pressed​

On button ‹Button› pressed ⚡ Trigger

True at the moment a button is pressed.

  • Where: Found under Input in the picker.
  • ID: input.buttonPressed (as saved in project files)
ParameterTypeDefaultNotes
ButtonTouch buttonjump

On button released​

On button ‹Button› released ⚡ Trigger

True at the moment a button is released.

  • Where: Found under Input in the picker.
  • ID: input.buttonReleased (as saved in project files)
ParameterTypeDefaultNotes
ButtonTouch buttonjump

On screen tapped​

On screen tapped ⚡ Trigger

True when the player taps anywhere on the screen.

  • Where: Found under Input in the picker.
  • ID: input.onTap (as saved in project files)
  • Parameters: none

Screen is touched​

Screen is touched

True while a finger is on the screen.

  • Where: Found under Input in the picker.
  • ID: input.screenTouched (as saved in project files)
  • Parameters: none

On swipe​

On swipe ‹Direction› ⚡ Trigger

True when the player swipes in a direction.

  • Where: Found under Input in the picker.
  • ID: input.onSwipe (as saved in project files)
ParameterTypeDefaultNotes
DirectionChoiceanyOptions: any, left, right, up, down

On input device changed​

On input device changed ⚡ Trigger

Fires when the player switches between a gamepad, the keyboard and mouse, and touch: update button prompts here.

  • Where: Found under Input in the picker.
  • ID: input.onDeviceChanged (as saved in project files)
  • Parameters: none

Input device is​

Input device is ‹Device›

What the player used last: gamepad, keyboard (keys or the mouse) or touch. Use it to show the right button prompts.

  • Where: Found under Input in the picker.
  • ID: input.deviceIs (as saved in project files)
ParameterTypeDefaultNotes
DeviceChoicegamepadOptions: gamepad, keyboard, touch

Is waiting for a key​

Waiting for a key for ‹Control (empty: any)›

True while Rebind control waits for the player's new key; leave Control empty for any. Show "Press a key…" while it is.

  • Where: Found under Input in the picker.
  • ID: input.isRebinding (as saved in project files)
ParameterTypeDefaultNotes
Control (empty: any)Text

On control rebound​

On ‹Control (empty: any)› rebound ⚡ Trigger

Fires when the player has chosen a new key or gamepad button for a control (leave Control empty for any).

  • Where: Found under Input in the picker.
  • ID: input.onRebound (as saved in project files)
ParameterTypeDefaultNotes
Control (empty: any)Text

Joystick is moving​

Joystick is moving

True while the joystick (or WASD / arrows, or a gamepad stick) is pushed.

  • Where: Found under Input in the picker.
  • ID: input.joystickMoving (as saved in project files)
  • Parameters: none

Joystick direction​

Joystick pushed ‹Direction›

True while the joystick is pushed in a direction.

  • Where: Found under Input in the picker.
  • ID: input.joystickDirection (as saved in project files)
ParameterTypeDefaultNotes
DirectionChoiceupOptions: left, right, up, down

Key is held​

Key ‹Key› is held

True while a keyboard key or gamepad button (PadA, PadB, PadX, PadY, PadLB, PadRB, PadLT, PadRT, PadStart…) is held.

  • Where: Found under Input in the picker.
  • ID: input.keyDown (as saved in project files)
ParameterTypeDefaultNotes
KeyKeyboard keySpace

On key pressed​

On key ‹Key› pressed ⚡ Trigger

True at the moment a keyboard key or gamepad button (PadA…) is pressed.

  • Where: Found under Input in the picker.
  • ID: input.keyPressed (as saved in project files)
ParameterTypeDefaultNotes
KeyKeyboard keySpace

On tapped​

‹Object› is tapped ⚡ Trigger

Runs when the player taps this object on screen (also works for UI buttons).

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onTap (as saved in project files)
  • Parameters: none

📦 Object​

Compare property​

‹Object› ‹Property› ‹Comparison› ‹Value›

Compare position, angle, size or speed, e.g. Player y < -5.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.compareProp (as saved in project files)
ParameterTypeDefaultNotes
PropertyChoiceyOptions: x, y, z, angle, rotX, rotY, rotZ, scaleX, scaleY, scaleZ, vx, vy, vz, speed, jointAngle, jointSpeed, worldX, worldY, worldZ, hipsX, hipsY, hipsZ, text, value, min, max, screenX, screenY, centerX, centerY, width, height
ComparisonChoice=Options: =, ≠, <, ≤, >, ≥
ValueExpression0

Is in a vehicle​

‹Object› is in a vehicle

True while the object rides a vehicle (after Enter vehicle).

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.isInVehicle (as saved in project files)
  • Parameters: none

Has a driver​

‹Object› has a driver

True while someone is in this boat or car (after Enter vehicle).

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.hasDriver (as saved in project files)
  • Parameters: none

Is playing animation​

‹Object› is playing animation ‹Animation›

True while the given model animation is playing.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.isPlayingAnimation (as saved in project files)
ParameterTypeDefaultNotes
AnimationExpression"walk"

On arrived​

On ‹Object› arrived ⚡ Trigger

Runs when the object reaches the point of its "Move to position" (or gets as close as it can when walls are in the way).

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onArrived (as saved in project files)
  • Parameters: none

Is moving to a position​

‹Object› is moving to a position

True while a "Move to position" is under way.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.isMovingTo (as saved in project files)
  • Parameters: none

On video finished​

On ‹Object› video finished ⚡ Trigger
  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onVideoFinished (as saved in project files)
  • Parameters: none

Video is playing​

‹Object› video is playing
  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.videoPlaying (as saved in project files)
  • Parameters: none

On animation finished​

On ‹Object› animation ‹Animation (empty = any)› finished ⚡ Trigger

Runs when a play-once animation (loop off) reaches its end. Leave the name empty for any animation.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onAnimationFinished (as saved in project files)
ParameterTypeDefaultNotes
Animation (empty = any)TextOptional.

Is tweening​

‹Object› is tweening ‹Property›

True while a tween of that property is still running.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.isTweening (as saved in project files)
ParameterTypeDefaultNotes
PropertyChoicesizeOptions: Position X, Position Y, Position Z, Angle (°), Size (all axes), Opacity

Is visible​

‹Object› is visible

True if the object is shown.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.isVisible (as saved in project files)
  • Parameters: none

Has tag​

‹Object› has tag ‹Tag›

True if the object has a tag.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.hasTag (as saved in project files)
ParameterTypeDefaultNotes
TagTag

On created​

On ‹Object› created ⚡ Trigger

Runs when a new instance of the object is created.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onCreated (as saved in project files)
  • Parameters: none

On destroyed​

On ‹Object› destroyed ⚡ Trigger

Runs when an instance of the object is destroyed.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onDestroyed (as saved in project files)
  • Parameters: none

Distance to​

Distance ‹Object› ↔ ‹Other object› ‹Comparison› ‹Distance›

Compare the distance between the object and the nearest other object.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.distanceTo (as saved in project files)
ParameterTypeDefaultNotes
Other objectObject or #tag
ComparisonChoice=Options: =, ≠, <, ≤, >, ≥
DistanceNumber (expression)2
MeasureChoice3dOptions: 3D, Flat (X, Z)

Compare count​

Number of ‹Object› ‹Comparison› ‹Count›

Compare how many of this object exist (or are picked).

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.count (as saved in project files)
ParameterTypeDefaultNotes
ComparisonChoice=Options: =, ≠, <, ≤, >, ≥
CountNumber (expression)0

Exists​

‹Object› exists

True if at least one of these objects exists. Invert it for "no more coins".

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.exists (as saved in project files)
  • Parameters: none

Pick nearest​

Pick ‹Object› nearest to ‹Other object›

Only use the instance closest to another object.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.pickNearest (as saved in project files)
ParameterTypeDefaultNotes
Other objectObject or #tag

Pick farthest​

Pick ‹Object› farthest from ‹Other object›

Only use the instance farthest from another object.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.pickFarthest (as saved in project files)
ParameterTypeDefaultNotes
Other objectObject or #tag

Pick random​

Pick a random ‹Object›

Only use one random instance.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.pickRandom (as saved in project files)
  • Parameters: none

🔀 Animator​

On state entered​

On ‹Object› entering animator state ‹State (empty = any)› ⚡ Trigger

Runs when the object's Animator starts a state: as the cross-fade into it begins. Leave the name empty for any state.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onAnimatorStateEnter (as saved in project files)
ParameterTypeDefaultNotes
State (empty = any)TextOptional.

On state exited​

On ‹Object› leaving animator state ‹State (empty = any)› ⚡ Trigger

Runs when the object's Animator has left a state: as the cross-fade out of it ends. Leave the name empty for any state.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onAnimatorStateExit (as saved in project files)
ParameterTypeDefaultNotes
State (empty = any)TextOptional.

Is in state​

‹Object› is in animator state ‹State›

True while the object's Animator is in that state of its Base Layer (during a cross-fade, the state it is going to).

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.isInAnimatorState (as saved in project files)
ParameterTypeDefaultNotes
StateTextIdle

Compare parameter​

‹Object› animator ‹Parameter› ‹Comparison› ‹Value›

Compares one of the Animator's parameters with a value. A bool reads as 1 or 0.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.compareAnimatorParam (as saved in project files)
ParameterTypeDefaultNotes
ParameterTextSpeed
ComparisonChoice=Options: =, ≠, <, ≤, >, ≥
ValueExpression0

🎬 Timeline​

On timeline signal​

On ‹Timeline (empty = any)› signal ‹Signal (empty = any)› ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: timeline.onSignal (as saved in project files)
ParameterTypeDefaultNotes
Timeline (empty = any)TimelineOptional.
Signal (empty = any)TextOptional.

On timeline finished​

On ‹Timeline (empty = any)› finished ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: timeline.onFinished (as saved in project files)
ParameterTypeDefaultNotes
Timeline (empty = any)TimelineOptional.

Timeline is playing​

‹Timeline› is playing
  • Where: Found under System in the picker.
  • ID: timeline.isPlaying (as saved in project files)
ParameterTypeDefaultNotes
TimelineTimeline

🌐 Language​

Language is​

Language is ‹Language›
  • Where: Found under System in the picker.
  • ID: system.languageIs (as saved in project files)
ParameterTypeDefaultNotes
LanguageLanguage

On language changed​

On language changed ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: system.onLanguageChanged (as saved in project files)
  • Parameters: none

🏆 Services​

Achievement is unlocked​

Achievement ‹Achievement› is unlocked
  • Where: Found under System in the picker.
  • ID: services.achievementUnlocked (as saved in project files)
ParameterTypeDefaultNotes
AchievementAchievement

On achievement unlocked​

On achievement ‹Achievement (empty = any)› unlocked ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: services.onAchievement (as saved in project files)
ParameterTypeDefaultNotes
Achievement (empty = any)AchievementOptional.

On rewarded ad earned​

On rewarded ad earned ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: services.onRewarded (as saved in project files)
  • Parameters: none

On ad closed​

On ad closed ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: services.onAdClosed (as saved in project files)
  • Parameters: none

Owns product​

Owns product ‹Product›
  • Where: Found under System in the picker.
  • ID: services.owns (as saved in project files)
ParameterTypeDefaultNotes
ProductProduct

On purchase done​

On purchase of ‹Product (empty = any)› done ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: services.onPurchased (as saved in project files)
ParameterTypeDefaultNotes
Product (empty = any)ProductOptional.

On purchase failed​

On purchase of ‹Product (empty = any)› failed ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: services.onPurchaseFailed (as saved in project files)
ParameterTypeDefaultNotes
Product (empty = any)ProductOptional.

♨️ Steam​

Steam is running​

Steam is running
  • Where: Found under System in the picker.
  • ID: steam.running (as saved in project files)
  • Parameters: none

Owns DLC​

Owns DLC ‹DLC App ID›
  • Where: Found under System in the picker.
  • ID: steam.ownsDlc (as saved in project files)
ParameterTypeDefaultNotes
DLC App IDNumber (expression)0

Steam overlay is open​

Steam overlay is open
  • Where: Found under System in the picker.
  • ID: steam.overlayOpen (as saved in project files)
  • Parameters: none

🔗 Web​

On web response​

On web response ‹Name (empty = any)› ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: web.onResponse (as saved in project files)
ParameterTypeDefaultNotes
Name (empty = any)TextOptional.

On web error​

On web error ‹Name (empty = any)› ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: web.onError (as saved in project files)
ParameterTypeDefaultNotes
Name (empty = any)TextOptional.

👥 Multiplayer​

On shared value changed​

On shared ‹Name (empty = any)› changed ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: net.onShared (as saved in project files)
ParameterTypeDefaultNotes
Name (empty = any)TextOptional.

Is mine​

‹Object› is mine
  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: net.isMine (as saved in project files)
  • Parameters: none

I am the host​

I am the host
  • Where: Found under System in the picker.
  • ID: net.isHost (as saved in project files)
  • Parameters: none

In a room​

In a room
  • Where: Found under System in the picker.
  • ID: net.isOnline (as saved in project files)
  • Parameters: none

On room joined​

On room joined ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: net.onJoined (as saved in project files)
  • Parameters: none

On room failed​

On room failed ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: net.onFailed (as saved in project files)
  • Parameters: none

On player joined​

On player joined ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: net.onPlayerJoined (as saved in project files)
  • Parameters: none

On player left​

On player left ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: net.onPlayerLeft (as saved in project files)
  • Parameters: none

On message​

On message ‹Name (empty = any)› ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: net.onMessage (as saved in project files)
ParameterTypeDefaultNotes
Name (empty = any)TextOptional.

Message is​

Message is ‹Name›
  • Where: Found under System in the picker.
  • ID: net.messageIs (as saved in project files)
ParameterTypeDefaultNotes
NameText

On connection lost​

On connection lost ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: net.onReconnecting (as saved in project files)
  • Parameters: none

On reconnected​

On reconnected ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: net.onReconnected (as saved in project files)
  • Parameters: none

On disconnected​

On disconnected ⚡ Trigger
  • Where: Found under System in the picker.
  • ID: net.onClosed (as saved in project files)
  • Parameters: none

🧱 Physics​

Raycast​

Ray from (‹From X›, ‹From Y›, ‹From Z›) towards (‹Direction X›, ‹Direction Y›, ‹Direction Z›), ‹Length (m)› m‹Must hit (optional)›‹Only tag (optional)›‹Ignore (optional)›

Shoots an invisible ray from a point in a direction and is true when it hits something solid. Afterwards, in the actions of the same event, use rayHitX / rayHitY / rayHitZ (where it hit), rayNormalX / rayNormalY / rayNormalZ (which way the surface faces; rayNormalY is 1 on flat ground), rayDistance (meters) and rayhitname() (the object's name). Must hit makes the condition true only when the ray hits that kind of object, and picks it for the actions. Only tag ignores everything without that tag. Ignore lets the ray pass through those objects. Triggers (coins, checkpoints) never block a ray.

  • Where: Found under System in the picker.
  • ID: system.raycast (as saved in project files)
ParameterTypeDefaultNotes
From XExpression0
From YExpression1
From ZExpression0
Direction XExpression0
Direction YExpression-1
Direction ZExpression0
Length (m)Expression10
Must hit (optional)Object or #tagOptional.
Only tag (optional)TagOptional.
Ignore (optional)Object or #tagOptional.

On collision with​

‹Object› collides with ‹Other object› ⚡ Trigger

Runs at the moment the object starts touching another object. In its actions, hitX, hitY, hitZ are where they touched, hitNormalX/Y/Z the surface direction (out of the other object toward this one), hitSpeed how fast they met and hitImpulse how hard they were pushed apart.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.collidesWith (as saved in project files)
ParameterTypeDefaultNotes
Other objectObject or #tag

On collision ended​

‹Object› stops touching ‹Other object› ⚡ Trigger

Runs at the moment two objects stop touching.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.collisionEnded (as saved in project files)
ParameterTypeDefaultNotes
Other objectObject or #tag

Is touching​

‹Object› is touching ‹Other object›

True while the object touches (overlaps) another object. In its actions, hitX, hitY, hitZ, hitNormalX/Y/Z, hitSpeed and hitImpulse describe the current contact (for triggers hitX/Y/Z and the surface direction are estimated and hitImpulse is 0; all 0 when nothing touches).

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.isTouching (as saved in project files)
ParameterTypeDefaultNotes
Other objectObject or #tag

Is on ground​

‹Object› is on the ground

True when a physics object is standing on something.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.isOnGround (as saved in project files)
  • Parameters: none

Is in water​

‹Object› is in water

True while the object is inside a Water object — for a physics object, while any part of it is.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.isInWater (as saved in project files)
  • Parameters: none

On enter water​

On ‹Object› enters water ⚡ Trigger

Runs when a physics object enters a Water object, as soon as any part of it is under the surface.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onEnterWater (as saved in project files)
  • Parameters: none

On leave water​

On ‹Object› leaves water ⚡ Trigger

Runs when a physics object comes all the way out of a Water object.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onLeaveWater (as saved in project files)
  • Parameters: none

Has line of sight to​

‹Object› can see ‹Target›

True when nothing solid (walls, crates…) is between the object and the target, e.g. an enemy only chases the player it can see. Triggers (checkpoints, coins) never block the view.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.hasLineOfSight (as saved in project files)
ParameterTypeDefaultNotes
TargetObject or #tag

Sees​

‹Object› sees ‹Target›

True when the other object is inside this object's Sight cone (its Range and View Angle, from its Eye) and nothing solid is in between, e.g. a guard that notices the player. Needs a Sight component.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.canSee (as saved in project files)
ParameterTypeDefaultNotes
TargetObject or #tag

On starts seeing​

On ‹Object› starts seeing ‹Target› ⚡ Trigger

Fires once when the target comes into this object's Sight (in its cone, no wall in between), e.g. a guard that shouts when it spots the player. Needs a Sight component.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onSeen (as saved in project files)
ParameterTypeDefaultNotes
TargetObject or #tag

On loses sight of​

On ‹Object› loses sight of ‹Target› ⚡ Trigger

Fires once when the target goes out of this object's Sight: out of its cone or behind a wall. Not when the target is destroyed. Needs a Sight component.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onLostSight (as saved in project files)
ParameterTypeDefaultNotes
TargetObject or #tag

Raycast from​

‹Object› raycast ‹Direction›, ‹Length (m)› m‹Must hit (optional)›‹Only tag (optional)›‹Ignore (optional)›

Shoots a ray out of the object: forward, backward, left, right (the way it faces), or straight up or down. It never hits the object itself. Start height lifts the start above the object's center, e.g. to eye level. Uses the same rayHit…, rayNormal…, rayDistance and rayhitname() values and the same Must hit / Only tag / Ignore options as the Raycast condition. With several objects at once, the values come from the last one that hit.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.raycast (as saved in project files)
ParameterTypeDefaultNotes
DirectionChoiceforwardOptions: forward, backward, left, right, up, down
Length (m)Expression10
Start height (m)Expression0
Must hit (optional)Object or #tagOptional.
Only tag (optional)TagOptional.
Ignore (optional)Object or #tagOptional.

Is moving​

‹Object› is moving

True when the object's physics speed is above zero.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.isMoving (as saved in project files)
  • Parameters: none

❤️ Health​

On hurt​

On ‹Object› hurt ⚡ Trigger

Runs when the object (it needs the Health behavior) takes damage and survives or dies. Its health is in Self.health.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onHurt (as saved in project files)
  • Parameters: none

On death​

On ‹Object› death ⚡ Trigger

Runs when the object’s health reaches 0 (it needs the Health behavior). It is still there during this event, then removed unless Destroy on death is off.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onDeath (as saved in project files)
  • Parameters: none

➰ Curve​

On reached end of curve​

On ‹Object› reached the end of its curve ⚡ Trigger
  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onCurveEnd (as saved in project files)
  • Parameters: none

Compare curve progress​

‹Object› curve progress ‹Comparison› ‹Progress (0 to 1)›
  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.compareCurveProgress (as saved in project files)
ParameterTypeDefaultNotes
ComparisonChoice≥Options: <, ≤, =, ≥, >
Progress (0 to 1)Number (expression)0.5

🖼️ UI​

On clicked​

On ‹Object› clicked ⚡ Trigger

Runs when the player taps a UI button (e.g. Start, Pause, Retry).

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: ui.onClick (as saved in project files)
  • Parameters: none

Is held down​

‹Object› is held down

True while the player holds a UI button (e.g. a custom fire button).

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: ui.isPressed (as saved in project files)
  • Parameters: none

On submitted​

On ‹Object› submitted ⚡ Trigger

Fires when the player presses Enter in this input field: send the chat line, accept the name.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: ui.onSubmit (as saved in project files)
  • Parameters: none

On typing finished​

On ‹Object› typing finished ⚡ Trigger

Fires when the player stops typing in this input field: Enter, a tap elsewhere, Esc or B on a controller.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: ui.onEndEdit (as saved in project files)
  • Parameters: none

Is being typed in​

‹Object› is being typed in

True while the player is typing in this input field, e.g. to hold the character still.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: ui.isTyping (as saved in project files)
  • Parameters: none

Is selected​

‹Object› is selected

True while a controller or the arrow keys have chosen this button or slider (show its tooltip, play a sound).

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: ui.isSelected (as saved in project files)
  • Parameters: none

Is on​

‹Object› is on

True while this toggle is on (ticked).

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: ui.isOn (as saved in project files)
  • Parameters: none

Compare slider value​

‹Object› value ‹Comparison› ‹Value›

Compare the value of a slider or bar, e.g. Health value ≤ 0.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: ui.compareValue (as saved in project files)
ParameterTypeDefaultNotes
ComparisonChoice=Options: =, ≠, <, ≤, >, ≥
ValueExpression0

On value changed​

On ‹Object› value changed ⚡ Trigger

Runs when the player drags a slider to a new value (e.g. a volume setting), switches a toggle, picks a dropdown option, or types in an input field.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: ui.onValueChanged (as saved in project files)
  • Parameters: none

On HTML clicked​

On ‹Object› HTML ‹Selector› clicked ⚡ Trigger

Runs when something in an HTML element is clicked. The selector picks what: "#buy", ".item", or empty for anywhere.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: ui.onHTMLClick (as saved in project files)
ParameterTypeDefaultNotes
SelectorExpression""

On HTML changed​

On ‹Object› HTML ‹Selector› changed ⚡ Trigger

Runs when a text box, checkbox or list inside an HTML element is changed.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: ui.onHTMLChange (as saved in project files)
ParameterTypeDefaultNotes
SelectorExpression""

✨ Particles​

Is emitting particles​

‹Object› is emitting particles

True while its Particle System is making new particles.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.isEmittingParticles (as saved in project files)
  • Parameters: none

Is playing particles​

‹Object› is playing its particles

True while its Particle System plays: emitting, or particles still flying after a stop. False when paused or finished.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.isPlayingParticles (as saved in project files)
  • Parameters: none

Is particles paused​

‹Object› particles are paused

True while its Particle System is paused ("Pause particles").

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.isPausedParticles (as saved in project files)
  • Parameters: none

Compare particle count​

‹Object› particle count ‹Comparison› ‹Value›

How many of its particles are alive right now.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.compareParticleCount (as saved in project files)
ParameterTypeDefaultNotes
ComparisonChoice=Options: =, ≠, <, ≤, >, ≥
ValueExpression0

On particle collision​

‹Object› particles hit ‹Other object› ⚡ Trigger

Runs when particles of the object hit another object. Needs its Collision module with "Send Collision Messages" on. In its actions, hitX, hitY, hitZ are where the first one hit, hitNormalX/Y/Z the surface direction and hitSpeed its speed after the hit.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onParticleCollision (as saved in project files)
ParameterTypeDefaultNotes
Other objectObject or #tag

On particles stopped​

On ‹Object› particles stopped ⚡ Trigger

Runs when its Particle System has stopped and its last particle died. Needs "Stop Action" set to Callback in the Particle System.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: object.onParticlesStopped (as saved in project files)
  • Parameters: none

🔊 Audio​

Is sound playing​

Sound ‹Sound (empty = any)› is playing

True while a sound you played (or any, when empty) is still playing. A sound that is fading out no longer counts.

  • Where: Found under Audio in the picker.
  • ID: audio.isPlaying (as saved in project files)
ParameterTypeDefaultNotes
Sound (empty = any)SoundOptional.

On music beat​

On every ‹Every … beats› music beat(s)

True once on each beat of the music (a beat, or a sound given a tempo in Files), or every few beats from the one given: things that move or flash to the music.

  • Where: Found under Audio in the picker.
  • ID: audio.onMusicBeat (as saved in project files)
ParameterTypeDefaultNotes
Every … beatsNumber (expression)1
Starting at beatNumber (expression)0

On music bar​

On every ‹Every … bars› music bar(s)

True once on each bar of the music (4 beats), or every few bars.

  • Where: Found under Audio in the picker.
  • ID: audio.onMusicBar (as saved in project files)
ParameterTypeDefaultNotes
Every … barsNumber (expression)1

Is music playing​

Music ‹Music (empty = any)› is playing

True while music (or that music) is playing.

  • Where: Found under Audio in the picker.
  • ID: audio.isMusicPlaying (as saved in project files)
ParameterTypeDefaultNotes
Music (empty = any)SoundOptional.

🎥 Camera​

Camera draws layer​

‹Object› draws layer ‹Layer›
  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: camera.drawsLayer (as saved in project files)
ParameterTypeDefaultNotes
LayerTextDefault

Is live camera​

‹Object› is the live camera

True while this Virtual Camera is the one the game is seen through.

  • Where: Pick an object (or a #tag) first, then this condition.
  • ID: camera.isLive (as saved in project files)
  • Parameters: none

🎚️ Graphics​

Graphics quality is​

Graphics quality is ‹Level›
  • Where: Found under System in the picker.
  • ID: system.compareQuality (as saved in project files)
ParameterTypeDefaultNotes
LevelQuality levelhigh