NOTE – Sometimes the system will fail to find the characters in the sample. If this happens go to Resources>Character and drag ‘Alice’, ‘Lizzie’ and ‘Natasha’ into the Hierarchy.
Step 11 – Save the scene.
TUTORIAL – CREATING A NEW CHARACTER
Okay so you have seen the system work and are now wondering how to add a YOUR character into the system. It’s really simple.
Step 1 – Open the scene you saved from the previous tutorial. Or open ‘SampleCutscene’ from the Samples. Step 2 – Drag in ‘BlankCharacter’ to the Hierarchy, this is obtained from Prefabs>Character. Step 3 - Select ‘Blank’ in the Hierarchy.
11
Step 4 – Select the image you wish to use for a character and just drag it into the inspector or onto the instance in scene view.
Step 5 – If you wish to see your character in the Inspector drag the same image into the ‘Image’ field on the Character inspector.
12
Step 6 – In the Inspector you can now give your character a name and speech colour and determine which way the character will face.
Step 7(Optional) – You can use the default tools within Unity to move and scale the graphic wherever you see fit.
Step 8 – Disable the Mesh Renderer component in the inspector.
Step 9 – Make a prefab in Resources>Character with the same name as your newly created character. Drag the Character into this prefab. Step 10- Save.
TUTORIAL – CREATING A NEW BACKGROUND
This section covers adding new background images.
Step 1 – Open the scene you saved from the previous tutorial. Or open ‘SampleCutscene’ from the Samples. Step 2 – Drag in ‘BlankBackground’ to the Hierarchy, this is obtained from Prefabs>Background. Step 3 – Select the ‘ImagePlane’ child Object. Step 4 – Drag your image onto the plane.
Step 5 – Go back to the parent object. And give the background a name.
Step 6 – Store this as a new prefab in either Prefabs or Resources, try to keep it in a folder marked ‘Backgrounds’. Step 7 – Save.
13
TUTORIAL – CREATING A CONVERSATION SCRIPT
Right let’s put all of this together and build a conversation.
Step 1 – Launch the conversation editor by selecting Window>ConversationSystem>Dialog Editor.
Step 2 – The system will automatically produce a new script ready for editing for you. Click the New Scene button to begin.
14
Step 3 – First give your scene a name, then select the background you wish to use for the scene, along with any music if you have any.
Step 4 – Each scene can have as many paths as you desire and can be set to go to any and all paths from a
question. Let’s add our first path. Give it a name. The flag for leads to game over should force the game to look for a game over level when it reaches the end. This isn’t strictly implemented and will need some code along the lines shown below.
15