How to simulate animated typing?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Lindsay4047
:warning: Old Version Published before Godot 3 was released.

I want to make a given text display animated, one character at a time, as if someone is typing it. I know this can be done with the Timer node, but how would I make it so that it only animates the given text once, stops animating after it’s done, and then moves on to animate the next given text when called? Also, how could I vary the “typing” speed between a range or be of a random speed? I am using the LineEdit node as the input and the RichTextLabel as the output.

Thanks in advance!

:bust_in_silhouette: Reply From: Calinou

You can use an AnimationPlayer and play with the Characters Visible or Percent Visible property, depending if you’re using a Label or a RichTextLabel. It’s quite simple really, and allows you to easily change the speed (or play the animation backwards to simulate erasing).