+2 votes

Basically, the player can change their name in the character creation. It consists of a confirm dialog and a text edit in the dialog and when the text edit is changed, the name appears above the instanced character scene. But when I open the game.tscn the character doesn't have the name. Anyone know whats wrong?

in Engine by (297 points)

1 Answer

+1 vote

By using a singleton and making the name a global variable. More on that here.

by (659 points)

Do you know how I would connect the confirm dialog to the singleton?

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.