Respawn not happening after Restarting to Character Select

I created a simple Character Select page and once game over is triggered I have the “Restart” button to leading back to the character select. However, once you select the character again it doesn’t respawn.

It’s odd because when I change the restart button to “Change scene to level”, the character respawns with no issue. But, I don’t want the game to run that way - I want the character select to pop up everytime you click the restart button on game over.

Another thing to note is that the characters are set to global objects.

Screenshots in this order: character select scene events, the restart button from the level events, and how the characters first appear in the level events:

Thanks for any insight!

Hi,

It looks like the issue is with how your CharacterSelect variable is handled. Since it’s a variable, its value doesn’t reset when you go back to the Character Select scene, so the character doesn’t re-spawn because the selection condition is already true. Also, you’re using “Add to variable”, which can push the value beyond what your events check for (e.g., >2), causing nothing to happen.

To fix the issues Use “Set variable” instead of “Add” when selecting a character. At the start of the Character Select scene, add Set global variable CharacterSelect to 0. You should also use Trigger once in conditions but for actions like changing scenes or setting a variable once on click etc, to prevent the event from firing multiple times

If the issue persists, I’ll be happy to take a closer look.

Hope it helps!

1 Like

Thank you so much, this worked!! :partying_face:

1 Like