Scene objects can be used to add information to the game objects in your scene.
You can use scene objects to add names, descriptions and icons to game objects in your scenes. This can be used to name NPCs, item boxes, doors leading somewhere else or any other kind of game object.
Scene object information can be added to game objects using a Scene Object Component. Once that information is attached to the game object, it can be used by different features of ORK, e.g.:
- Interaction HUDs can display the information
- Tooltip HUDs can display the information
- Item boxes can dispaly the information in their collection dialogue
- Event actors can use the information in dialogues (e.g. use the scene object’s name)
You don’t need to set up scene object data for each game object in your game that needs information – only for each game object that needs different information.
Your game has wooden and metal doors. A scene contains 5 doors, 3 wooden and 2 metal doors.
You’ll need 2 different scene objects – one with the wooden door information (e.g. name Wooden Door) and one with the metal door information (e.g. name Metal Door).
As you can see in this example, all game objects that share the same information can use the same scene object. On the other hand, if you need individual information on game objects, you need to set up individual scene objects for them.
Your game has 3 unique NPCs named Red, Green, and Blue. You’ll need to set up scene objects for all 3 of them.
Your game’s doors (wooden and metal) display additional information about where they’re leading to. You’ll need to set up scene object information for each door that leads to a different location (e.g. Wooden Door to Inn and Wooden Door to Bedroom).
Scene Object Types
Scene object types are used to separate scene objects and can add additional type information to them. You can define the name, description and icon of a scene object type.
They’re set up in the ORK Framework editor in World > Scene Object Types.
Scene objects are used to add information to game objects in your scenes using a Scene Object Component. You can define the name, description and icon of the scene object, as well as select a scene object type.
Additionally, scene objects can automatically add Object Variable components to the game objects they’re added to – as well as initialize them to defined variable values.
They’re set up in the ORK Framework editor in World > Scene Objects.