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.
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.
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.
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.
Try it
Section titled “Try it”The lesson’s chain, computed here as in the app. Move the revs, change the maximum.
Input
rpm
Bar
Why it works
Section titled “Why it works”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.
If you’re stuck
Section titled “If you’re stuck”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.