Skip to reading
The Sock Exchange, Part 3: The Dryer Conspiracy

Help the room remember

Edition 0.86.4.2

0.86.4.2 edition with appended native sprite-motion lessons. Earlier chapters, reference counts and screenshots retain their original edition context.

Download PDFView illustrations

TUTORIAL 03 • VISUAL SCRIPT DESIGNER

A variable is a piece of information the game can keep. This one answers a yes-or-no question. Has Bea fixed the washer? One little graph gives the right answer every time she enters.

1 Under Variables, add washer_fixed. Choose type Boolean and leave Initial Boolean Value unchecked (false). Apply. Under Visual Scripts, add washer_view, named Washer view. Start with an empty graph. Delete any starter nodes so If Variable is the first node you add.

2 Drag If Variable from the palette, or use Add Node. Set Variable = Washer fixed and Equals = True. Add the five action nodes listed below. On every object node choose Sorting Room first, then the object. Each Hide / Unhide Object node has a Visible checkbox.

In the Visual Script Designer the purple condition splits into two wires. Drag from an output dot to the next input dot.

Source table from Help the room remember, page 12
WireNodes to connect in this order
TRUE • fixedHide / Unhide Object › washer_lock › Visible off
thenHide / Unhide Object › washer_running › Visible on
thenEnable / Disable Object › washer_running › Enabled on
FALSE • lockedHide / Unhide Object › washer_lock › Visible on
thenHide / Unhide Object › washer_running › Visible off

3 Open Scenes › Sorting Room. In Room Events › When Enters Room, choose Run Script and select Washer view. Apply and save. Use the ordinary enter event so the room checks again on return trips. A fresh game should still show the locked washer.

PCA 3D Adventure Studio / 12

Page 12 of 18Permalink
Go to page

Continue your 2D adventure

  1. Part 1The Sock Exchange, Part 1: Your First 2D Adventure
  2. Part 2The Sock Exchange, Part 2: The Missing Laundry
  3. Part 3The Sock Exchange, Part 3: The Dryer Conspiracy
  4. Part 4The Sock Exchange, Part 4: Trouble After Closing
  5. Part 5The Sock Exchange, Part 5: The Midnight Pickup
  6. Part 6The Sock Exchange, Part 6: Closing Time