Skip to reading
New Features Workbook: 35 Hands-on Lessons

Give the alarm its own value

Edition 0.86.4.7

37-page workbook using example workbenches included with the Studio release. The separately attached PDF is byte-identical to this ZIP copy and is included once.

Download PDFView illustrations

Build rotary instruments

STUDIO 0.86.4.7 • LESSON 6 OF 35

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.

Page 8 of 37Permalink
Go to page