What Happens When a State is Entered
Here’s the sequence:- Transition fires and moves the training to a new state
- onEntry actions run (in the order you defined them)
- State is now fully set up and waiting for learner interaction
- Learner does something (taps, moves, chooses, etc.)
- An event is triggered, and a transition out of the state may fire
Common onEntry Actions
Adding onEntry Actions

On Entry tab showing multiple actions (panel-start, Load Scene, Transform Object) running in sequence
Select a state on the canvas
In the Properties panel, select the On Entry tab
Click the Add Action button
Select the action type you want
Configure the action

The Add Action picker — search or browse actions by category
Action Execution Order
onEntry actions run sequentially — one after another, in the order they appear in your list. Example sequence for a state:- Load “Operating Room” scene (immediate)
- Delay 1 second (let scene render)
- Play narration audio “Follow these steps…” (5 seconds)
- Show Panel — title “Heart Monitor”, body “Check the heart monitor” (waits for learner to read or click Next)
- Highlight the heart monitor object in blue (stays highlighted)
Example: Typical State Setup
Here’s a realistic example of onEntry actions for a state called “Identify the Problem”:- Scene loads (2-second delay for it to render)
- Audio narration plays (5 seconds)
- Panel appears below
- Pressure gauge pulses red to guide the learner’s eye
- Learner can now tap the highlighted gauge or select an answer
Coordinating onEntry with Events
Your learner interaction depends on what you set up in onEntry. Example: onEntry actions:- Show Panel: body “Tap the valve to open it”
- Highlight valve in blue
- Trigger on valve tap
- Transition to next state
Using onEntry for Setup, Not Just UI
onEntry isn’t just for displaying things — use it to initialize your training logic: Examples:- Set Variable
scoreto0at the beginning - Set Variable
startTimetonow()to track elapsed time (now()returns the current time in milliseconds) - Set Variable
isFirstAttempttotruefor attempt tracking - Set Variable
userChoiceto""before showing a choice panel
onEntry Best Practices
Load the scene first
Load the scene first
Add pauses after scene loads
Add pauses after scene loads
Narration before text panels
Narration before text panels
Highlight targets clearly
Highlight targets clearly
Keep it short
Keep it short
Next Steps
Learn about:- Exit Actions (onExit) — Clean up and prepare for the next state
- Conditional Transitions — Combine events, conditions, and actions
- Variables — Use variables to track data in onEntry

