Skip to content
FREN

Make it blink

Changed, Pulse, Blink: three nodes that remember the previous frame, so an alert lights up at the right moment and goes out on its own.

  • 7 min
  • an empty dashboard will do
  • at the end: a rectangle that blinks for five seconds on every new lap

The nodes from the previous lessons recompute everything on every frame. These keep track of the previous frame: that’s what lets them blink, count five seconds, notice that a value just changed. We put them together backwards, from the rectangle to the game.

Step 1 / 3

Make a rectangle blink

Draw a rectangle (R). Tab, Blink. In the rectangle’s node, open the Transform section and wire the Blink’s output to visible. The rectangle blinks twice a second: freq is in hertz, duty is the lit share of each period.

Step 2 / 3

Light it for five seconds

Tab, Pulse, its output on the Blink’s enable. The rectangle disappears: the Pulse is waiting for a trigger. Tick trigger to try it by hand: it blinks for five seconds, the duration, then stops.

Step 3 / 3

Trigger it on every lap

In the Input, search for lap, the lap number. Tab, Changed: wire lap to its input, its output to trigger. On every new lap, the rectangle blinks for five seconds.

The lesson’s chain, node by node, with the three outputs on the strip at the bottom. Click Next lap, then change the Changed mode, the duration, the frequency.

Input

lap3

Changed

out

Pulse

out

Blink

out

Rectangle

Changed compares its input with the previous frame’s: in rising it’s true when it goes up, in falling when it goes down, in any either way, and for a single frame. Pulse turns that instant into a duration: on a rising edge of trigger, it stays true for duration seconds, and a new trigger along the way restarts the count. Blink beats while enable is true, and starts lit again every time it’s turned back on.

For a channel that’s already true or false, like the pit limiter (pit_limiter_active), you don’t need the first two: wired straight to enable, the rectangle blinks as long as the limiter is on.

In the editor, the rectangle stays still. The graph only recomputes when the telemetry changes: with Mock Telemetry standing still, Blink and Pulse stop. Start PLAY or move one of its sliders to see them run. The launched dashboard follows the game continuously.

The rectangle never stops blinking. Nothing reaches enable: the ticked box keeps it on. Wire the Pulse’s output.

It never lights up. Changed doesn’t see a new lap: in falling, it waits for the value to go down. Set it back to rising, and tick the Pulse’s trigger to check the rest.