Higscore using Webstore plus Array

Get help using Construct 2

Post » Mon Jun 17, 2013 8:23 pm

Hi guys, i followed this tutorial (http://youtu.be/06-LgQxceGg) to create a Top Ten High Score and I am having problems with it. It does not save the score (it replaces it with any new score). The score is only displayed in the first text box. (And i have some others bugs in-game.)

Here is the file:
https://www.dropbox.com/s/drlsbyx2ppcw8er/bugged_game.capx

Tanks for the help.
B
7
S
3
G
1
Posts: 18
Reputation: 1,434

Post » Mon Jun 17, 2013 9:07 pm

Check out this tutorial, I followed it and implemented in my game.
Very good tut and easy to follow.

https://www.scirra.com/tutorials/581/top-10-high-score-with-webstorage-and-arrays
B
28
S
6
G
2
Posts: 86
Reputation: 3,267

Post » Mon Jun 17, 2013 9:31 pm

Just checked out your capx and you did not put "," (comma)in

int(tokenat(highscore,arScore.CurX, ","))

do this for both arScore loops and it will work for you.
B
28
S
6
G
2
Posts: 86
Reputation: 3,267

Post » Mon Jun 17, 2013 11:43 pm

Thanks. It worked. Do you know what i have to do to make it put the lowest time first, second smallest in second position and so?
B
7
S
3
G
1
Posts: 18
Reputation: 1,434


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests