Put Gus on the other end
TUTORIAL 05 • CHARACTER + GUI DESIGNERS
When Bea is outside, one click should put you in Gus’s shoes back in the Lobby. His badge stays with him. The next click brings you back to Bea with her own bag.
1 Select Project › Gameplay Defaults › Inventory Mode and choose per-character. In Character Designer › Gus (clerk) › Player Settings, turn on Playable Character and Allow Character Switching. Leave Default Starting Character off. Set Switch Label to Gus, order 2. Under Starting Inventory › Initial Inventory Item IDs, type shift_badge. Apply.
2 For Bea (player), turn on Playable Character, Default Starting Character and Allow Character Switching. Use label Bea, order 1. Apply. Keep the original Gus in the Lobby. Select his existing placement in Scene Designer and check the same player and badge settings if your placement has its own copy.
GUI Designer • Bea and Gus sit side by side in the top-left corner. Gus’s Player Settings • the middle box is the one left empty.
3 In GUI Designer open Night shift commands (night_words). Add two Button elements, each 130 × 48, anchored top-left. Give them the text Bea and Gus. Drag them to positions (24, 24) and (166, 24). Use IDs words_bea and words_gus. For each, choose Events › Click › switch-character. Enter player for Bea’s Click Target and clerk for Gus’s.
4 Repeat the two buttons on Laundry controls (laundry_hud) with IDs verbs_bea and verbs_gus. Use the same targets. On each HUD, select the bag and set Inventory Owner to Current Active Player. Save and use Play / Restart for a fresh game. Click Gus and check for the badge. Click Bea and it should disappear from view.
If you added the Part 4 walk script, open sorting_motion. Immediately above var a = Runtime.player, insert the two lines below at the indent shown. This keeps Bea’s directional walk on Bea. Validate, Apply Changes and save.
if Runtime.active_player_id != "player":
returnPCA 3D Adventure Studio / 8
