Page 1 of 1
Dialogue TypeWriter \. - Waits 60 frames Stop Sound Effect?
Posted: Tue Oct 19, 2021 4:19 am
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?
Re: Dialogue TypeWriter \. - Waits 60 frames Stop Sound Effect?
Posted: Tue Oct 19, 2021 8:37 am
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?
Re: Dialogue TypeWriter \. - Waits 60 frames Stop Sound Effect?
Posted: Tue Oct 19, 2021 11:07 am
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?
Re: Dialogue TypeWriter \. - Waits 60 frames Stop Sound Effect?
Posted: Tue Oct 19, 2021 2:01 pm
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.
Re: Dialogue TypeWriter \. - Waits 60 frames Stop Sound Effect?
Posted: Wed Oct 20, 2021 6:31 am
by Nippy
Wow! This is awesome, thank you! I hope my question helped others, too
Re: Dialogue TypeWriter \. - Waits 60 frames Stop Sound Effect?
Posted: Wed Oct 20, 2021 7:53 am
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!