Just saying it simply:
variables that will exist after changing layout.
in would use that in my game as currency; you collect it in game and with it, you can boost your player, gain effects and blah blah blah.
is that possiple some way?
Just use global variables.
Or you can create an object that is global and add instance variabes to it.
Global objects don't get destroyed when changing layouts. On a game of mine I have an sprite called Settings, and save all the settinsg as instance variables of that object.
Develop games in your browser. Powerful, performant & highly capable.
i didn't even know that
Your welcome, I just like the global object with vars, so I can keep things organized better. Global vars are a pain