Skip to content
FREN

Wire a value to a widget

The editor's basic move: a wire, from a game value to a widget.

  • 6 min
  • no game needed
  • at the end: a bar that follows the revs

The whole editor fits in one move: drag a wire from a game value to a widget. Three steps. The workbench next door replays each one, filmed in the app, while you read.

Step 1 / 3

Drop a bar

Below the canvas, open Assets, pick Bar. The bar lands at the top left of the page, half full: that’s its default value. Its node shows up in the graph.

Step 2 / 3

Drag the revs wire

In the Input node, search for rpm. Grab its dot, drop it on the bar’s value. That wire is the binding: nothing else to set.

Step 3 / 3

Give it a maximum

The bar’s maximum is 100 by default: from 100 rpm on, it’s full. Hover the graph, Tab, Number, type 8000, wire it to max. The bar now follows the revs.

The lesson’s chain, computed here as in the app. Move the revs, change the maximum.

Input

rpm

Bar

On every frame, SimLogix puts the game’s values on the outputs of the Input node, and each wire carries them from left to right. The bar knows nothing about the game: it fills to value / max, kept between empty and full.

The wire won’t drop. The dots don’t have the same type: a number doesn’t go into a colour. A dot’s colour tells its type.

The bar stays full. The maximum is below the revs: check the Number node wired to max.