Hello I would like to store a text input. as variable.
but i don't know what to do. Not work with item value
Develop games in your browser. Powerful, performant & highly capable.
Isn't that player_id is number? If so you need to convert the string from local storage using int. I think you confused yourself between key and item value.
I tried with item, and with Key. but I don't understand what Key is. but with item it doesn't work. player_id is the nickname chosen by the player. with text input. it is a global string.
Here simple use of localStorage: dropbox.com/s/gyq1wurwd05fl0y/keep%20global%20var.capx