Skip to content

Debounce

169

The Debounce node is a signal stabilizer used to filter out "chatter" or noise from physical inputs. It only updates its output if the input signal remains stable and unchanged for a specified interval_ms.

When to use this node: * Mechanical Buttons: Essential for physical buttons or switches that might "bounce" (trigger multiple times) when a player presses them once. * Unstable Sensors: Smoothing out erratic readings from distance sensors or light sensors to prevent flickering game logic. * Intentional Delays: Requiring a player to hold a button down for a full second before an action occurs to prevent accidental triggers.

Connectors in

  • in [type: bool]

Connectors out

  • out [type: bool]

Node properties

  • interval_ms [type: integer]