Skip to content

AnimatedTextLabel ​

Inherits: RichTextLabel

A RichTextLabel that can type out text character by character Simplified version for conversation system use

Properties ​

floatseconds_per_character0.02
boolpause_at_punctuationtrue
Stringpause_characters".!?"
floatpunctuation_pause_duration0.15

Variables ​

boolis_typingfalse

Methods ​

voidtype_out_text( new_text: String )
voidfinish_typing()
voidskip_typing()
boolget_is_typing()

Signals ​

typing_started() ​

========== SIGNALS ==========

typing_finished() ​

Emitted when the whole text has been typed.

typing_skipped() ​

Emitted when the player skipped the typing.

Property descriptions ​

float seconds_per_character = 0.02 ​

Speed at which text types out (seconds per character)

bool pause_at_punctuation = true ​

Pause longer at these punctuation marks

String pause_characters = ".!?" ​

Characters that trigger a pause

float punctuation_pause_duration = 0.15 ​

Duration of pause at punctuation (in seconds)

Variable descriptions ​

bool is_typing = false ​

========== RUNTIME STATE ==========

Method descriptions ​

void type_out_text( new_text: String ) ​

Start typing out the given text

void finish_typing() ​

Instantly finish typing and show all text

void skip_typing() ​

Skip the typing animation (same as finish_typing but emits different signal)

bool get_is_typing() ​

Check if currently typing