I attempted to have my game switch to the first scene based on saved data. It appears that the value in Local Storage is not being properly assigned to the global variable. How can I assign the value from Local Storage to the global variable?
"get item" is asynchronous, you need to wait for the "-> on item get" trigger before using localStorage.itemValue
Develop games in your browser. Powerful, performant & highly capable.
Here is a example