Page 1 of 1

Increase Typewriter Speed

Posted: Tue Nov 28, 2023 9:57 pm
by Kairos
I want to have a function that would make the typewriter speed faster when I hold my mouse button. I tried using the built in "StandardUIContinueButtonFastForward" but it autocompletes the whole dialogue and it does not fit with my game, here what I came up with my code so far:

I've seen this code somewhere in this forum, but I can't seem to make it work.
I'm setting the "SetTypewriterSpeed" using Event Triggers in Unity.
The problem with this is that it skips the whole dialogue even when it's not finished when I click instead of holding it.

Re: Increase Typewriter Speed

Posted: Wed Nov 29, 2023 8:38 am
by Tony Li
Hi,

Please see the bottom part of How To: Adjust Typewriter Speed. It links to this post which has example code that speeds up the typewriter when clicking a button. You can adapt it to speed up the typewriter when holding down the mouse button and returning to the original speed when releasing the mouse button.

Re: Increase Typewriter Speed

Posted: Sat Dec 02, 2023 6:41 am
by Kairos
I see it!

Thanks again Tony!

Re: Increase Typewriter Speed

Posted: Sat Dec 02, 2023 8:29 am
by Tony Li
Glad to help!