2. Set up a small working room
Figure 3. The workshop used throughout the guide. Simple objects make the results of the logic easy to see.
Use a new project or a copy of a working game. You can follow the lessons with primitives, the bundled character models or your own artwork. The logic is the important part; a plain box can stand in for a door.
| Record | Example ID / purpose |
|---|---|
| Room | lab: a floor, navigation, a player and a working default camera. |
| Player / NPC | ada is the live player; player is its runtime alias. elias is the NPC. |
| Scene key | brass_key: the object that can be picked up. |
| Inventory definition | brass_key_item: the item carried after the pickup. |
| Door | workshop_door: a blocking scene object. |
| Beacon / switches | shader_orb, blue_switch and red_switch. |
| GUI | scene_hud, with a label hud_text and button pulse_button. |
If your room uses different IDs, substitute them throughout. Keep the scene key and inventory item distinct. Picking up an object does not automatically create an inventory definition.
No practice project is needed. These are instructions for building the examples in a project of your own. Save a copy before changing an existing game.
