Open the yard after the repair
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.
| Room / display name | Entity ID | Position X, Y, Z | Source size |
|---|---|---|---|
| Sorting / Service door | yard_door | 8.2, 0, 2.4 | 125 × 200 |
| Yard / Staff door | staff_door | −15, 0, 0.7 | 155 × 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
