A clock with four working hands
On this page
PCA 3D ADVENTURE STUDIO / UPDATED TUTORIAL EDITION / 0.86.4.7
Open the updated lessons | Pages 7-11#
PCA 3D ADVENTURE STUDIO / VISUAL AUTHORING
Open examples/workbenches/Instrument-Room.pca3d in Studio. The alarm is the short teal hand. Each hand has its own variable, so changing the alarm leaves the displayed time alone.
Bind the alarm#
Open GUI Designer, choose instruments, select clock, then open Type Settings. Choose Bind hand alarm. Set Source to game.variable, Source ID to alarm, and Direction to two_way. Leave Convert at none and click Apply. The top line shows the stable hand ID and its numeric range.
The alarm uses its own binding. Reordering a hand keeps its ID and source together.
Try it in Runtime Preview#
Start at 6. Turn the teal hand one step or focus the clock, select the alarm with Up or Down, and press Right. The alarm should reach 7 while the hour and minute stay where they were. Turn it back to 6 for the porter.
For a pressure gauge, bind the primary value to pressure and choose one_way. Click Raise pressure in the sample. The needle advances from 66 to 80. Dragging or nudging the gauge leaves the source untouched.
