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.
- ⚡ 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 ⚡ TriggerRuns 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 tickTrue 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| First value | Expression | 0 | |
| Comparison | Choice | = | Options: =, ≠, <, ≤, >, ≥ |
| Second value | Expression | 0 |
Is true
‹Expression› is trueTrue when the expression is true (or not 0).
- Where: Found under System in the picker.
- ID:
system.isTrue(as saved in project files)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Expression | Expression | true |
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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Value | Expression | 0 | |
| Min | Number (expression) | 0 | |
| Max | Number (expression) | 10 |
Random chance
‹Percent›% chanceTrue randomly, e.g. 25 = one time in four.
- Where: Found under System in the picker.
- ID:
system.chance(as saved in project files)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Percent | Number (expression) | 50 |
Trigger once while true
Trigger once while truePut 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 activeTrue if the event group is active.
- Where: Found under System in the picker.
- ID:
system.isGroupActive(as saved in project files)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Group | Event 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Slot | Text | Save 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Slot (empty: any) | Text | Optional. |
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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Slot (empty: any) | Text | Optional. |
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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Slot (empty: any) | Text | Optional. |
🔢 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Variable | Variable | ||
| Comparison | Choice | = | Options: =, ≠, <, ≤, >, ≥ |
| Value | Expression | 0 |
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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Instance variable | Variable | An instance variable of the object. | |
| Comparison | Choice | = | Options: =, ≠, <, ≤, >, ≥ |
| Value | Expression | 0 |
⏱️ Time
Every X seconds
Every ‹Seconds› secondsTrue once every few seconds.
- Where: Found under System in the picker.
- ID:
system.every(as saved in project files)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Seconds | Number (expression) | 1 |
On timer finished
Timer ‹Timer name› finished ⚡ TriggerTrue 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Timer name | Text | timer |
Timer is running
Timer ‹Timer name› is runningTrue while a timer is counting down.
- Where: Found under System in the picker.
- ID:
time.isTimerRunning(as saved in project files)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Timer name | Text | timer |
Compare scene time
Scene time ‹Comparison› ‹Seconds› sCompare the seconds since the scene started.
- Where: Found under System in the picker.
- ID:
time.compareTime(as saved in project files)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Comparison | Choice | = | Options: =, ≠, <, ≤, >, ≥ |
| Seconds | Number (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 ⚡ TriggerRuns 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 🔁 LoopRuns 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Times | Number (expression) | 3 |
For
For ‹Loop name› from ‹From› to ‹To› 🔁 LoopRepeats 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Loop name | Text | i | |
| From | Number (expression) | 0 | |
| To | Number (expression) | 9 |
While
While 🔁 LoopRepeats 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› 🔁 LoopRun 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 heldTrue 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Button | Touch button | jump |
On button pressed
On button ‹Button› pressed ⚡ TriggerTrue at the moment a button is pressed.
- Where: Found under Input in the picker.
- ID:
input.buttonPressed(as saved in project files)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Button | Touch button | jump |
On button released
On button ‹Button› released ⚡ TriggerTrue at the moment a button is released.
- Where: Found under Input in the picker.
- ID:
input.buttonReleased(as saved in project files)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Button | Touch button | jump |
On screen tapped
On screen tapped ⚡ TriggerTrue 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 touchedTrue 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› ⚡ TriggerTrue when the player swipes in a direction.
- Where: Found under Input in the picker.
- ID:
input.onSwipe(as saved in project files)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Direction | Choice | any | Options: any, left, right, up, down |
On input device changed
On input device changed ⚡ TriggerFires 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Device | Choice | gamepad | Options: 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Control (empty: any) | Text |
On control rebound
On ‹Control (empty: any)› rebound ⚡ TriggerFires 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Control (empty: any) | Text |
Joystick is moving
Joystick is movingTrue 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Direction | Choice | up | Options: left, right, up, down |
Key is held
Key ‹Key› is heldTrue 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Key | Keyboard key | Space |
On key pressed
On key ‹Key› pressed ⚡ TriggerTrue 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Key | Keyboard key | Space |
On tapped
‹Object› is tapped ⚡ TriggerRuns 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Property | Choice | y | Options: 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 |
| Comparison | Choice | = | Options: =, ≠, <, ≤, >, ≥ |
| Value | Expression | 0 |
Is in a vehicle
‹Object› is in a vehicleTrue 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 driverTrue 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Animation | Expression | "walk" |
On arrived
On ‹Object› arrived ⚡ TriggerRuns 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 positionTrue 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 ⚡ TriggerRuns 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Animation (empty = any) | Text | Optional. |
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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Property | Choice | size | Options: Position X, Position Y, Position Z, Angle (°), Size (all axes), Opacity |
Is visible
‹Object› is visibleTrue 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Tag | Tag |
On created
On ‹Object› created ⚡ TriggerRuns 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 ⚡ TriggerRuns 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Other object | Object or #tag | ||
| Comparison | Choice | = | Options: =, ≠, <, ≤, >, ≥ |
| Distance | Number (expression) | 2 | |
| Measure | Choice | 3d | Options: 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Comparison | Choice | = | Options: =, ≠, <, ≤, >, ≥ |
| Count | Number (expression) | 0 |
Exists
‹Object› existsTrue 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Other object | Object 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Other object | Object 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)› ⚡ TriggerRuns 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| State (empty = any) | Text | Optional. |
On state exited
On ‹Object› leaving animator state ‹State (empty = any)› ⚡ TriggerRuns 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| State (empty = any) | Text | Optional. |
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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| State | Text | Idle |
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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Parameter | Text | Speed | |
| Comparison | Choice | = | Options: =, ≠, <, ≤, >, ≥ |
| Value | Expression | 0 |
🎬 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Timeline (empty = any) | Timeline | Optional. | |
| Signal (empty = any) | Text | Optional. |
On timeline finished
On ‹Timeline (empty = any)› finished ⚡ Trigger- Where: Found under System in the picker.
- ID:
timeline.onFinished(as saved in project files)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Timeline (empty = any) | Timeline | Optional. |
Timeline is playing
‹Timeline› is playing- Where: Found under System in the picker.
- ID:
timeline.isPlaying(as saved in project files)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Timeline | Timeline |
🌐 Language
Language is
Language is ‹Language›- Where: Found under System in the picker.
- ID:
system.languageIs(as saved in project files)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Language | Language |
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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Achievement | Achievement |
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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Achievement (empty = any) | Achievement | Optional. |
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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Product | Product |
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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Product (empty = any) | Product | Optional. |
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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Product (empty = any) | Product | Optional. |
♨️ 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| DLC App ID | Number (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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Name (empty = any) | Text | Optional. |
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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Name (empty = any) | Text | Optional. |
👥 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Name (empty = any) | Text | Optional. |
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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Name (empty = any) | Text | Optional. |
Message is
Message is ‹Name›- Where: Found under System in the picker.
- ID:
net.messageIs(as saved in project files)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Name | Text |
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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| From X | Expression | 0 | |
| From Y | Expression | 1 | |
| From Z | Expression | 0 | |
| Direction X | Expression | 0 | |
| Direction Y | Expression | -1 | |
| Direction Z | Expression | 0 | |
| Length (m) | Expression | 10 | |
| Must hit (optional) | Object or #tag | Optional. | |
| Only tag (optional) | Tag | Optional. | |
| Ignore (optional) | Object or #tag | Optional. |
On collision with
‹Object› collides with ‹Other object› ⚡ TriggerRuns 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Other object | Object or #tag |
On collision ended
‹Object› stops touching ‹Other object› ⚡ TriggerRuns 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Other object | Object 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Other object | Object or #tag |
Is on ground
‹Object› is on the groundTrue 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 waterTrue 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 ⚡ TriggerRuns 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 ⚡ TriggerRuns 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Target | Object 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Target | Object or #tag |
On starts seeing
On ‹Object› starts seeing ‹Target› ⚡ TriggerFires 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Target | Object or #tag |
On loses sight of
On ‹Object› loses sight of ‹Target› ⚡ TriggerFires 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Target | Object 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Direction | Choice | forward | Options: forward, backward, left, right, up, down |
| Length (m) | Expression | 10 | |
| Start height (m) | Expression | 0 | |
| Must hit (optional) | Object or #tag | Optional. | |
| Only tag (optional) | Tag | Optional. | |
| Ignore (optional) | Object or #tag | Optional. |
Is moving
‹Object› is movingTrue 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 ⚡ TriggerRuns 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 ⚡ TriggerRuns 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Comparison | Choice | ≥ | Options: <, ≤, =, ≥, > |
| Progress (0 to 1) | Number (expression) | 0.5 |
🖼️ UI
On clicked
On ‹Object› clicked ⚡ TriggerRuns 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 downTrue 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 ⚡ TriggerFires 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 ⚡ TriggerFires 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 inTrue 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 selectedTrue 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 onTrue 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Comparison | Choice | = | Options: =, ≠, <, ≤, >, ≥ |
| Value | Expression | 0 |
On value changed
On ‹Object› value changed ⚡ TriggerRuns 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 ⚡ TriggerRuns 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Selector | Expression | "" |
On HTML changed
On ‹Object› HTML ‹Selector› changed ⚡ TriggerRuns 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Selector | Expression | "" |
✨ Particles
Is emitting particles
‹Object› is emitting particlesTrue 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 particlesTrue 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 pausedTrue 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Comparison | Choice | = | Options: =, ≠, <, ≤, >, ≥ |
| Value | Expression | 0 |
On particle collision
‹Object› particles hit ‹Other object› ⚡ TriggerRuns 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Other object | Object or #tag |
On particles stopped
On ‹Object› particles stopped ⚡ TriggerRuns 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 playingTrue 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Sound (empty = any) | Sound | Optional. |
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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Every … beats | Number (expression) | 1 | |
| Starting at beat | Number (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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Every … bars | Number (expression) | 1 |
Is music playing
Music ‹Music (empty = any)› is playingTrue while music (or that music) is playing.
- Where: Found under Audio in the picker.
- ID:
audio.isMusicPlaying(as saved in project files)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Music (empty = any) | Sound | Optional. |
🎥 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Layer | Text | Default |
Is live camera
‹Object› is the live cameraTrue 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)
| Parameter | Type | Default | Notes |
|---|---|---|---|
| Level | Quality level | high |