Learn

Chapter 02 References & Essential Nodes

#018 Gate Node

Burn in the lava, stop the moment you step out.

  • 0:58 video
  • Written lesson
  • Beginner
Video lesson: Gate Node, 0:58

How Gate works

Gate has four exec inputs (Enter, Open, Close and Toggle) and one output: Exit.

  • A pulse arriving at Enter leaves through Exit only while the gate is open.
  • Open and Close only change the state. They never fire Exit themselves.
  • Toggle flips the state.

Example: a lava zone

Begin Overlap opens the gate; End Overlap closes it. Event Tick connects to Enter, and Exit calls Apply Damage to hurt the player. Tick never stops, but damage only gets through while the player stands inside.

The common mistake

Start Closed is false by default. So the gate begins open, and the player burns before touching the lava. Enable Start Closed, and the gate waits for its first Open.

Damage on Tick

Damage on Tick depends on frame rate. Multiply it by Delta Seconds to get damage per second.

In short

Enter carries the pulse. Open and Close decide whether it passes.

Covered in this lesson

  • Gate
  • Enter
  • Open
  • Close
  • Toggle
  • Start Closed
  • Apply Damage
  • Delta Seconds

Try it in a tool

Newsletter

Development updates are coming to your inbox.

The newsletter opens soon. Until then, new lessons, tools and Beach Hunters progress appear first on our channels, linked below.