Do someone know how I can keep the variables (such as the name of the player) between two layout?
Develop games in your browser. Powerful, performant & highly capable.
Global variables do that by default. They don't really care what layout or event sheet you're on.