How can I remove the pause mode at the end of the script?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Freddy_wabm

func load_dialog():
var finished = false
get_tree().paused = true
if dialog_index < dialog.size():
$RichTextLabel.bbcode_text = dialog[dialog_index]
$RichTextLabel.percent_visible = 0
$RichTextLabel, “percent_visible”,0,1,1,Tween.TRANS_LINEAR, Tween.EASE_IN_OUT
dialog_index += 1

func _on_Tween_tween_completed(object, key):
finished = true

I have this code for a text box to pause on startup and unpause on completion try putting unpause = true at the end of the code and it was still in pause mode

:bust_in_silhouette: Reply From: MarkBarfield

I am also interested in this question. Perhaps someone can help?

:bust_in_silhouette: Reply From: Asthmar

get_tree().paused = false is how you unpause.

I try it in the final of the code but it still paused and idk what to do

Freddy_wabm | 2022-01-21 23:53