0 votes

func loaddialog():
var finished = false
get
tree().paused = true
if dialogindex < dialog.size():
$RichTextLabel.bbcode
text = dialog[dialogindex]
$RichTextLabel.percent
visible = 0
$Tween.interpolateproperty(
$RichTextLabel, "percent
visible",0,1,1,Tween.TRANSLINEAR, Tween.EASEINOUT
)
$Tween.start()
else:
queue
free()
dialog_index += 1

func onTweentweencompleted(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

in Engine by (12 points)

2 Answers

0 votes

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

by (14 points)
0 votes

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

by (659 points)

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.