Page 1 of 1

Dialogue system Typewriter jump

Posted: Sat Apr 03, 2021 2:32 pm
by joshualoveridge
Hey Toni!

I have an issue with the typewriter effect on the standard dialogue, essentially what happens is as follows, so the typewriter effect appears perfectly at the speed i set and then it gets to mid sentence and then jumps to the very end, I'm guessing its something like a max time on the typewriter effect but i cant seem to figure it out :)

any help would be appreciated!

Re: Dialogue system Typewriter jump

Posted: Sat Apr 03, 2021 3:09 pm
by Tony Li
Hi,

Make sure the Dialogue Manager GameObject's Display Settings > Subtitle Settings > Subtitle Chars Per Second is less than or equal to the typewriter effect's Character Per Second.

Every dialogue entry node has a Sequence. When the Sequence ends, the node jumps to the end. If the typewriter is still typing, this will jump the typewriter to the end, too.

If a node's Sequence is blank, it will use the Dialogue Manager's Display Settings > Camera & Cutscene Settings > Default Sequence. By default, the Default Sequence is set to:

Code: Select all

Delay({{end}})
This makes the Sequence wait for a duration based on the text length -- specifically on the value of the special keyword {{end}}, which is equal to the text length divided by Subtitle Chars Per Second. For example, if the text is 120 characters and Subtitle Chars Per Second is 30, {{end}} will be 120/30 = 4 seconds. (If this is less than Min Subtitle Seconds, {{end}} will be equal to Min Subtitle Seconds.)