Dialogue TypeWriter \. - Waits 60 frames Stop Sound Effect?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Nippy
Posts: 12
Joined: Mon Mar 22, 2021 7:33 pm

Dialogue TypeWriter \. - Waits 60 frames Stop Sound Effect?

Post by Nippy »

Hey!
I have an issue that the sound effect of typewriter UI effect is played when I add /. into my text for a dramatic pause, any way to stop playing the sound when \. is added?
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue TypeWriter \. - Waits 60 frames Stop Sound Effect?

Post by Tony Li »

Hi,

The typewriter should only play audio for actual characters, not for special codes such as \. or rich text codes (e.g., <b> or <color=red>).

Please check the audio source on the GameObject that has the typewriter effect component. Make sure its Loop checkbox isn't ticked, If the GameObject doesn't have an audio source, the typewriter will add one (with Loop unticked) at runtime.

Or is the issue that the audio from the previous character is still playing when the typewriter reaches the \. code?
Nippy
Posts: 12
Joined: Mon Mar 22, 2021 7:33 pm

Re: Dialogue TypeWriter \. - Waits 60 frames Stop Sound Effect?

Post by Nippy »

Hey! Thanks for the reply, there is no loop ticked. The issue is the audio from previous character is still playing, to I have to split the audio file or is there some magic trick in dialogue system I could stop the audio?
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue TypeWriter \. - Waits 60 frames Stop Sound Effect?

Post by Tony Li »

Hi,

Try this patch:

DS_TypewriterPatch_2021-10-19.unitypackage

It adds two new checkboxes to the typewriter effect to stop audio on silent characters and on pause codes.
Nippy
Posts: 12
Joined: Mon Mar 22, 2021 7:33 pm

Re: Dialogue TypeWriter \. - Waits 60 frames Stop Sound Effect?

Post by Nippy »

Wow! This is awesome, thank you! I hope my question helped others, too
User avatar
Tony Li
Posts: 21981
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue TypeWriter \. - Waits 60 frames Stop Sound Effect?

Post by Tony Li »

Glad to help! Most of the improvements to the Dialogue System nowadays come directly from user suggestions like yours, so thank you!
Post Reply