Editor Blocks
As well as adding objects to the Script Editor, you can also add other blocks that interact with the player or check logic.
These blocks can be found in the Event, Process and Trigger categories.

In this example, we'll deal 2 damage to the player 5 seconds after the room has loaded.
First, add the Start block from the Event category, the Delay block from the Process category, and the Health Control from the Trigger category, then drag around the blocks to organise them.

Similar to certain objects, blocks like the Delay and Health Control have configurable values.
Here we'll set the Delay to 5 seconds and the Amount on the Health Control to 2, to wait 5 seconds and deal 2 masks of damage. Make sure to press Apply when you're done.
Next, link together the blocks. In this example we link the OnStart event to the Delay's In trigger, then the Out event to the Health Control's Take trigger.

The blocks are now linked together, and the player will take 2 masks of damage 5 seconds after the room loads.
Last updated