Connect a read-only gauge
WORKED EXAMPLE / PRESSURE
A player can adjust a valve, but the pressure needle should follow the story. Give the game variable control of the needle.
Create a number variable pressure with starting value 66. Add a Gauge and 1 choose Arc gauge or Needle gauge. Set the range to 0–100, Step to 1 and Initial value to 66. Set the caption to Pressure and the suffix to a space followed by psi. Enable the readout for a number.
Clear Allow player rotation and leave Write value to variable empty. That 2 hand field sends turns outward. A display also needs a link that reads the source when the game changes it.
In 0.86.4.5 the ordinary Value binding button is hidden for rotary elements. 3 Select only the gauge and open Raw JSON (Advanced). Add the member below inside the existing element object, alongside id and rotary. Separate neighboring members with a comma. If the element already has bindings, add only the value entry inside it.
"bindings": {
"value": {
"kind": "game.variable", "id": "pressure",
"direction": "one_way", "transform": "none"
}
}4. Choose Validate and Apply Element JSON (Advanced), save and start a fresh preview. Use a Set Variable action to change pressure to 80, or use the State edit on page 6 of the debugging guide. The needle and readout should move to 80. Dragging on the gauge should leave it there.
Make it a player-operated valve#
Enable Allow player rotation and change the direction to two_way if both the player and the game should control the primary value. Use the same pressure example with Step 1. For fractional steps, a two-way binding preserves the source type: an integer rounds the result, while a floating-point source retains decimals. Leave the per-hand output blank when the binding owns the value.
