Give the alarm its own value
Knobs, dials and gauges
STUDIO 0.86.4.7 • LESSON 1 OF 5
Bind a particular hand by its ID. Players can then reset an alarm without disturbing the time displayed by the other hands.
1. Find the short teal hand
Open examples/workbenches/Instrument-Room.pca3d. In GUI Designer, choose instruments, select clock and open Type Settings. Choose Bind hand alarm. The target identifies the hand by ID, so moving it in the list preserves the connection.
2. Choose who can change it
Set Source to game.variable, Source ID to alarm and Direction to two_way. Keep Convert at none. Click Apply. A one_way binding is for a hand that only displays its source. The primary value already represents the first hand. Use one binding for that target.
3. Test one hand at a time
Start Runtime Preview. With the clock focused, use Up or Down to select the alarm. Press Right once to move from 6 to 7. Confirm that the other hands stay put. Press Left to restore 6. Try dragging the teal hand too. Ask the porter after raising the pressure.
The alarm’s own binding. Check the target at the top before choosing its source or direction.
WHAT TO CHECK
If the wrong hand changes, compare its ID in the rotary editor with the target shown in the binding dialog. A hand’s list position can change. Use the hand ID in event code that must survive reordering.
Related original lesson | p. 11 Tutorial edition 0.86.4.7
