0 votes

Hello there everyone,
So, I've been trying to make a game where you can select a character from the "CharacterSelection" scene, then depending on which character has been chosen, you instance a specific character in "Level1". I tried to send a signal with the chosen player's info, but I can't send a signal from the "CharacterSelection" scene to the actual "Level1"

So, How can I do that? Do you have any ideas?

Thanks in advance.

Godot version Godot 3.3.3 - Standard Version
in Engine by (32 points)

1 Answer

+1 vote
Best answer

One easy way to do it is:
Make a "Main" scene to contain the "CharacterSeletion" and "Level1"

Once you select your character, save the index information to a variable in the "Main"
Then, you queue_free() the "CharacterSeletion" scene and load the "Level1"
Now, you can use the "Main" to create an instance of your character and join it into the tree.

If you still want to separate the scene, you can search "autoload" for more information.

Hope this can help you.

by (315 points)
selected by

big thanks man, worked like a charm!

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.