LogicUsing Events
Player Start/Stop Moving
Triggers actions when a player starts or stops moving between blocks.
These events are useful for detecting a player's movement state, especially for games that require players to be still or constantly on the move.
Player Start Moving
Triggers once when a player moves from one block coordinate to a new one. It will not trigger again until they have stopped and started moving again.
- Action Values:
Player - Use Cases:
- Playing a footstep sound.
- Making a "Red Light, Green Light" game where moving at the wrong time is penalized.
- Revealing a hidden enemy when a player moves.
Player Stop Moving
Triggers when a player has been stationary on the same block for a short duration (about a quarter of a second).
- Action Values:
Player - Use Cases:
- Making a player invisible after they've been still for a few seconds (like a chameleon ability).
- Starting health regeneration only after a player has stopped moving and is "in cover".
- Punishing players for standing still too long in a fast-paced game.
Example: Red Light, Green Light
- Property: A
Global BooleanpropertyisRedLight, defaulttrue. - Region: The main playing field.
- Event:
Player Start Moving. - Action: A
Conditionalaction.- Condition:
Property Condition-> check ifisRedLightistrue. - If Actions:
Teleport Player: Send thePlayerback to the start.Send Message:&cYou moved during a red light!
- Condition: