Hi, I want to play an audio clip during typewriter effect.
I've already put my audio clip in sequence and it can play sound
but I can't figured out how to stop the audio clip when typewriter effect finish.
Typewriter sfx
Re: Typewriter sfx
Hi,
Inspect your typewriter's Audio Source and make sure Loop is UNticked.
If your audio clip is very long and you don't want it to finish out when the last character has been typed, you can configure the typewriter's OnEnd() UnityEvent to call the Audio Source's AudioSource.Stop method.
Inspect your typewriter's Audio Source and make sure Loop is UNticked.
If your audio clip is very long and you don't want it to finish out when the last character has been typed, you can configure the typewriter's OnEnd() UnityEvent to call the Audio Source's AudioSource.Stop method.
Re: Typewriter sfx
Hi, I don't know how to "configure the typewriter's OnEnd()" but I just find AudioStop() on documentation and successfully done what I want by using these sequence
Audio(NpcVoice1);
AudioStop()@Message(Typed);
Is this also the correct way to do it ? or I'll have a problem in the future ?
Audio(NpcVoice1);
AudioStop()@Message(Typed);
Is this also the correct way to do it ? or I'll have a problem in the future ?
Re: Typewriter sfx
That's fine if it does what you want. It will stop the audio playing on the speaking character.
If the typewriter's audio source isn't set to Loop, then it will stop when the last sound has finished on the last character. If you want to cut off the audio playing on the typewriter effect as soon as the last character is typed, you can configure OnEnd() like this:
If the typewriter's audio source isn't set to Loop, then it will stop when the last sound has finished on the last character. If you want to cut off the audio playing on the typewriter effect as soon as the last character is typed, you can configure OnEnd() like this:
Re: Typewriter sfx
Thank you !
I've found another problem, when my player response to my npc there are sounds from demo playing like
"Can't find the password" , "I'm still working on it" but I don't add those sound myself.
How can I remove them ? I use VN Template Standard Dialogue UI.
I've found another problem, when my player response to my npc there are sounds from demo playing like
"Can't find the password" , "I'm still working on it" but I don't add those sound myself.
How can I remove them ? I use VN Template Standard Dialogue UI.
Re: Typewriter sfx
Hi,
Remove or rename this folder:
Plugins / Pixel Crushers / Dialogue System / Demo / Resources
Then inspect your Dialogue Manager GameObject. Set Display Settings > Camera & Cutscene Settings > Default Sequence to:
Remove or rename this folder:
Plugins / Pixel Crushers / Dialogue System / Demo / Resources
Then inspect your Dialogue Manager GameObject. Set Display Settings > Camera & Cutscene Settings > Default Sequence to:
Code: Select all
Delay({{end}})
Re: Typewriter sfx
Thank you !! it works perfectly
I'm gonna leave you a 5 stars review now.
I'm gonna leave you a 5 stars review now.
Re: Typewriter sfx
Glad to help. Thank you very much for your review!