This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Okay, having trouble getting the code down for this one. I don't know too much about working with storing stuff like this. Here's a nice example to explain what I mean:

Player types in their name: Bob
The game replies: Hello, Bob.
The game then says: How are you doing, Bob?

So basically able to save and reuse the entered name.

in Engine by (12 points)

1 Answer

–2 votes

Look for global variables. basically they are variables that can be accessed in any script. so let's say you have a global variable named "PlayerName" then in the script where you create this dialog you keep calling it.

also Singletons might be another way of doing it

by (28 points)
edited by
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 Frequently asked questions and 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 [email protected] with your username.