unity对话插件教程 VISUAL NOVEL,RPG CONVERSATION SYSTEM(3)

2019-04-15 16:23

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


unity对话插件教程 VISUAL NOVEL,RPG CONVERSATION SYSTEM(3).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:七年级英语新目标下Unit 12测试题

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: