Object Blocks
This section of the guide covers basic scripts, with the example of making a lever that kills an enemy.

To start, place a lever and an enemy, then right click both with the Cursor tool to add them both to the Script Editor.

Access the Script Editor through the button in the pause menu, then drag the blocks apart with the cursor.
To link together the blocks, start by clicking an event on the first block, then click the trigger on the target block.
In this example we click the "OnActivate" event on the Reusable Lever, then the "Die" trigger on the Mossgrub.
This will link the two blocks together like this:

The two events are now linked, and hitting the lever will kill the Mossgrub.

Last updated