> The key is wherever variable you want to store it to, you can name that whatever you want, as long as you use that same key to load the score. The value is the actual score.
Ok thats good to know. so if i want my key to be highscore, and the value to be what is in ScoreText. Would the proper way of storing it be
sub event under my
if x passes y add 1 to score event.
- webstorage : local key exists >> Action >> webstorage Set local key "highscore" to ScoreText.Text
Score text is what actually appears on the screen as you are playing and counts
Yes, but I wouldn't check if the local key exists, you can just write to that key whether it exists or not, it will create it. If you check if the key exists, and the key doesn't exist, then you won't write anything, and therefore won't create it (unless you create it in another action)