Let's say you're on level 1, and you have a shop button in the top left corner. When you click on the button, it switches to the layer 'shop', but the other layer resets. Is it possible to make the level layer not get reset?
Develop games in your browser. Powerful, performant & highly capable.
i guess you mean layout instead of layer?
there is something like the persistent behaviour..
another way would be to save the current state to local storage or use global variables or the like to save the state of the layout..