Hi,
I struggle with setting the value of a key. I want it to overwrite the existing value every time I play a level, so that you at all times can see the latest score on each level.
What I have done so far is to create a global variable which I use as a timer (one for each level), adding 1 to this variable every second.
Then, at the end of the level, I do something like: Set local key "Time_LevelX" to Timer_LevelX
Then I display this in a level selection layout like this: Set text to WebStorage.LocalValue("Time_LevelX")
The problem is that is seems to only be storing the key the first time I finish the level. If I try again, it doesn't get updated, and I'm stuck with same time every time.
Could someone please explain why is it not updating the value?