How to: Calculate duration of the Typewriter Effect
Posted: Fri Apr 24, 2020 2:54 am
Hey,
I'm using the dialogue system with talking animations. I've set it up so onConversationLine it will play a looped talking animation and stop onConversationLineEnd and onConversationLineCancelled. The issue I'm having is that the character will keep talking after all the text is being presented - I only want the animation to work during the Typewriter Effect (Text showing overtime).
The method I'm trying to do is grabbing the DialogueManager.displaySettings.subtitleSettings.subtitleCharsPerSecond and trying the grab the text that is going to show (currently cannot figure that out). Using these values, I will calculate the time it takes to show the text and stop talking animation.
Thank you to anyone that can help me!
I'm using the dialogue system with talking animations. I've set it up so onConversationLine it will play a looped talking animation and stop onConversationLineEnd and onConversationLineCancelled. The issue I'm having is that the character will keep talking after all the text is being presented - I only want the animation to work during the Typewriter Effect (Text showing overtime).
The method I'm trying to do is grabbing the DialogueManager.displaySettings.subtitleSettings.subtitleCharsPerSecond and trying the grab the text that is going to show (currently cannot figure that out). Using these values, I will calculate the time it takes to show the text and stop talking animation.
Thank you to anyone that can help me!