I have spent a couple of days now trying to integrate the webstorage option into my game to save a players best previous score.

I've followed several tutorials and also read a lot of stuff on the forum which has helped me greatly but I have hit a wall now and could really do with a little bit of help please.

Basically I have the actual score working correctly and the 'Best Score' adds up correctly too but when you exit and reload the game the best score just says NAN. I gather that means 'Not A Number' so it might just be something silly but I'm not sure what I need to change!

Here is the relevant code from Construct:

[attachment=1:172e58kg][/attachment:172e58kg]

And here is the error message in game:

[attachment=0:172e58kg][/attachment:172e58kg]

If anyone can help me get this working it would be greatly appreciated. This is my first try at a Construct game so it's all a learning experience but I'm getting there!

Many thanks.