Page 1 of 1

How to output big text through Bark in NGUI?

Posted: Tue Apr 26, 2016 6:40 am
by Evgeny
It is necessary to output the big text through the Bark system, over object.
It is desirable to output the text on the separate part for time.
I have divided the text and have arranged parts in separate Dialogue entry. Each Dialogue entry is a child from the main entrance.
Question what set of components on object I can output consistently all parts.
Each following has to be played, after the termination previous (the text with a postscoring)

I apologize for my English :)

Re: How to output big text through Bark in NGUI?

Posted: Tue Apr 26, 2016 9:54 am
by Tony Li
Hello,

Use a Bark Trigger and a Bark On Dialogue Event. There is a similar example in Examples/Bark Example/Three NPCs Bark.

The Bark Trigger will start the first dialogue entry and set a variable. Then it will send an OnBarkEnd message to the character.

The Bark On Dialogue Event will listen for the OnBarkEnd message. Then it will play the next dialogue entry and increment the variable. This will continue until all of the dialogue entries are done.

I'll post an example later today.

Re: How to output big text through Bark in NGUI?

Posted: Tue Apr 26, 2016 9:41 pm
by Tony Li
This example imports into Dialogue System Examples/NGUI Bark Conversation.

It has 2 characters:
  • Private Hart: Barks on start. Uses a combination of Bark Trigger and Bark On Dialogue Event. Uses a variable to remember which line to bark.
  • Sergeant Graves: Barks when used (space bar). Plays a conversation using Conversation Trigger. Uses Bark Dialogue UI and Override Dialogue UI to play his lines through his bark UI.