0 votes

I'm making a platformer with signs and dialog boxes. Is there any way to wait for the dialog box to queue_free() before unfreezing the player?

Godot version 3.4
in Engine by (29 points)

1 Answer

0 votes

For dialog and menu systems simply hiding/showing works faster than adding/removing from screenTree. Not necessary but something to look into.

# Player.gd

func victor_fries():
    yield($dialog_box, "tree_exited")

or you can directly connect the signal for more control

by (4,982 points)

don't have to do that in the player script. i have a freeze variable lol

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.