Godot 4.2.1 =
Hello, i am working in a dialogue system to my game. This dialog system uses tweens to create the text of dialogue letter by letter in the richtextlabel.
The problem is in the function that skips these dialogue. This function should make all the letters of the rich text label be visible, however it does not works.
func smooth_dialogue( text, tween):
dialog_line_label.visible_characters = 0
var one_letter_time :float = 0.05
var time_needed : float = one_letter_time * len(text)
tween = create_tween()
one_letter_time = 0.05
tween.connect("finished", on_tween_finished)
tween.tween_property(dialog_line_label, "visible_characters",
len(text), time_needed)
How do i stop this tween and make the letters of dialogue be visible all at once or in a short period of time?