Make a list called scores. Assuming you have a variable called score, use scripts like these.
when I receive [Submit Score v] add (score) to [scores v] when I receive [Get High Score v] set [highest v] to [0] set [i v] to [1] repeat (length of [scores v]) if <(item (i) of [scores v]) > (highest)> set [highest v] to (item (i) of [scores v] end end say (join [The high score is: ] (highest))
Last edited by bobbybee (2012-03-05 17:25:54)
Offline
There is no way to save highscores online and compare user's high scores.
When the page is refreshed, everything is refreshed, including variables. It is also impossible to store the scores in a database or a file.
Offline
Make a highscore list, make a script to show it, and keep track of commented scores. Then, update the project (make it with the same name, exactly the same name) and change the list.
Offline