Thanks Dan,
By the way, I am using your code for the type writing animation, thank you for that. But, is there a way to obtain the time of the end of the animation with a variation of this code?
I need to know when the animation of typewriting will end depending of the number of character to enter.
For exemple 20 characters = 100 frames.
I need this because I want to trigger another animation at the end of the typing. And since there is no “timeAtValue” option that I can use, I thought about extracting this value from the source code of the animation.
PS: I’m working on a template. that’s why I need this value.
Thanks again.
minRate = 3; // frames per character
maxRate = 6;
charCount = 0;
t = 0;
seedRandom(index,true);
while (t < time){
charCount++;
t += framesToTime(random(minRate,maxRate));
}
value.substr(0,charCount)