Expand description
Puzzle building blocks that need no code: Switch (button, lever, pressure plate) and Slider
(door, lift, gate). They talk through a shared channel name: a slider opens while any switch
on its channel is active. Scripts press buttons with press().
Structs§
- Slider
- Moves its entity between its start position and
start + open_offsetwhile its channel is active. A door with collision needs a Kinematic RigidBody so physics follows it. - Switch
- Button: active for
hold_timeseconds after being pressed. Toggle: flips on every press. Plate: active while a physics object (a crate, the player) stands on it.
Enums§
- Switch
Kind - Momentary Button, persistent Toggle, or body-detecting pressure Plate.