Keep a variable between the scenes

Hi, I’m trying to keep the score in my game between the levels using a variable.

Do you know how to keep a variable between the scenes ?

Keep the score in a global variable. They exist while the game is running and aren’t reset when the scene changes.

1 Like

ohh thanks!
I didn’t know global variable existed.
How can I create one?

One way is to click on the Project Manager icon in the top left of the editor (the left most icon in image ). Select Global Variables under Project Settings.

1 Like

thank you very much!!! I’ll try it