Player Selection

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JCNegar

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.

:bust_in_silhouette: Reply From: dethland

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.

big thanks man, worked like a charm!

JCNegar | 2021-09-06 22:07