Visual Scripting
Integrate with Game Creator 2's visual scripting system
State Machine 2 provides a comprehensive set of Visual Scripting components that integrate seamlessly with Game Creator 2's action system.
Overview
All components are organized into four categories:
Instructions
Actions to control state machines (run, enable, disable, stop nodes)
Conditions
Check node states (is running, is enabled)
Events
React to variable changes
Properties
Read and write state machine variables
Asset vs Runner
State Machine 2 offers two modes for each component:
Asset
Affects all runners using the state machine asset
Global game state, shared behavior
Runner
Affects only a specific runner instance
Per-character state, individual objects
Quick Reference
Instructions
Control state machine execution:
Run Node โ Execute a specific node
Run Node with Variables โ Execute with variable values
Enable Node โ Re-enable a disabled node
Disable Node โ Prevent a node from executing
Stop Node โ Immediately stop a running node
Loop List with Node โ Iterate and execute per element
Conditions
Check state machine states:
Node Is Running โ Check if a node is executing
Node Is Enabled โ Check if a node is enabled
Events
React to state changes:
On Variable Change โ Triggered when an asset variable changes
On Runner Variable Change โ Triggered when a runner variable changes
Properties
Read and write variables from anywhere in Game Creator 2:
Get Properties โ Read variable values
Set Properties โ Write variable values
Finding Components in the Editor
All State Machine 2 visual scripting components are organized in the search menu:
Last updated
Was this helpful?