How do I change a variable in one layout using something in a different layout
Develop games in your browser. Powerful, performant & highly capable.
Use a global variable. They persist across layouts.