Saturday, May 9, 2015

[TUTORIAL] SIMPLE DIALOGUE SYSTEM #2

3. PREPARING THE PORTRAIT

We'll use this Sprite from the game "Riviera - the Promised Land". Download these and drag to Project tab. If your project is set to 2D, the texture type will automatically set to Sprite




























- Change the Sprite Mode to Multiple
- Open the Sprite Editor
- Click Slice > Slice. You can manually set the sprite slicing by selecting the box or dragging an empty space
- In the Sprite Properties (Bot Right), you can set the name of each slice.
- It's crucial for the Dialogue System, so you'd better name each slice well (eg. Normal, Happy, Angry)


4. USING THE DIALOGUE SYSTEM

You can download the Scripts HERE
I already commented some part of the code that may help you understand. 

First of all, you need an Object to manage the Dialogue System.
Call it the _DialogueManager















Next, add the DialogueTyper.cs script to the DialogueTyper object. Set the delay to 0.05





















Then add DialogueActor.cs and DialogueManager.cs to the _DialogueManager



















Next step will be covered in PART 3 ^^

1 comment:

  1. Hello~~I like your tutorial, but if can do a video will more clearer,Thank you for teaching~~and please update your part 3~~~^o^

    ReplyDelete