Skip to reading
The Sock Exchange, Part 4: Trouble After Closing

Open the yard after the repair

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 04 • SCENE + VISUAL SCRIPT DESIGNERS

Use the washer_fixed switch from Part 3. It already remembers the repair. A single test can decide whether the new service door is locked.

1 Draw a brown door, a little window and a push bar on a 32 × 52 transparent PNG. Import as Image service_door. Drag it onto the Sorting Room canvas, to the right of the washer. Use the first row below. Place the same image at the left end of the Service Yard using the second row.

Source table from Open the yard after the repair, page 7
Room / display nameEntity IDPosition X, Y, ZSource size
Sorting / Service dooryard_door8.2, 0, 2.4125 × 200
Yard / Staff doorstaff_door−15, 0, 0.7155 × 248

Outside • the door sits against the back of the pavement.

Inside • leave room to click the washer and door separately.

2 For both doors choose Image as Camera-Facing World Billboard and Match Locked Stage Camera. Set the image to service_door, enable its hotspot, and choose Open as its default verb. A hotspot is the part of the picture that takes the click.

3 Under Visual Scripts, add yard_access. In an empty graph add If Variable first. Select washer_fixed, Equals True. Wire TRUE to Change Scene › Service Yard, no Spawn, position [−13, 0, 3]. Wire FALSE to Show Message with “The security latch releases when the washer runs.”

4 On the inside door use Verb Actions › Open › Run Script › yard_access. On the outside door use Open › Change Scene › Sorting Room, no Spawn, position [6.8, 0, 3.4]. Apply each door. Save. Next page shows the finished graph and the fade.

PCA 3D Adventure Studio / 7

Page 7 of 20Permalink
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