Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » How to do Cloud Highscores?
- jonzo
-
24 posts
How to do Cloud Highscores?
When I was working on TRG2, I noticed that there were cloud variables available but no cloud list. Why is this? And is there any efficient way to make a list of highscores with usernames so I could display it within the project?
- SFollis
-
500+ posts
How to do Cloud Highscores?
well, the easiest way would be to have cloud variables, but the problem is that is limited to a certain amount, and uses double if you want usernames.
No cloud lists, they are still working on it (probably adding moderation from a computer?). I made a game, (which you can find here) and it uses the easier way… e.g.
if score > ☁ 1st place
set ☁ 1st place to score
encode (username) – this encodes the username into numbers
set ☁ 1st place user to string encoded
else
if score > ☁ 2nd place
set ☁ 2nd place to score
encode (username) – this encodes the username into numbers
set ☁ 2nd place user to string encoded
else
if score > ☁ 3rd place
set ☁ 3rd place to score
encode (username) – this encodes the username into numbers
set ☁ 3rd place user to string encoded
and then you need another script…
forever
decode (☁ 1st place user)
set 1st place to (join string decoded : ☁ 1st place)
decode (☁ 2nd place user)
set 2nd place to (join string decoded join : ☁ 2nd place)
decode (☁ 3rd place user)
set 3rd place to (join string decoded join : ☁ 3rd place)
my game (the one a link up there) uses this… if you want an encoder, there are many to use. I can link you mine if you want (it is easy to add characters to it)
for the encoder (of mine) here http://scratch.mit.edu/projects/10079708/
and there is how
No cloud lists, they are still working on it (probably adding moderation from a computer?). I made a game, (which you can find here) and it uses the easier way… e.g.
if score > ☁ 1st place
set ☁ 1st place to score
encode (username) – this encodes the username into numbers
set ☁ 1st place user to string encoded
else
if score > ☁ 2nd place
set ☁ 2nd place to score
encode (username) – this encodes the username into numbers
set ☁ 2nd place user to string encoded
else
if score > ☁ 3rd place
set ☁ 3rd place to score
encode (username) – this encodes the username into numbers
set ☁ 3rd place user to string encoded
and then you need another script…
forever
decode (☁ 1st place user)
set 1st place to (join string decoded : ☁ 1st place)
decode (☁ 2nd place user)
set 2nd place to (join string decoded join : ☁ 2nd place)
decode (☁ 3rd place user)
set 3rd place to (join string decoded join : ☁ 3rd place)
my game (the one a link up there) uses this… if you want an encoder, there are many to use. I can link you mine if you want (it is easy to add characters to it)
for the encoder (of mine) here http://scratch.mit.edu/projects/10079708/
and there is how

- jonzo
-
24 posts
How to do Cloud Highscores?
Thanks for the help. Is there any way that you can have an infinite list of all the highscores ever? Instead of just the top 3?
- jvvg
-
1000+ posts
How to do Cloud Highscores?
Once cloud lists come out, you can keep them there. However, until then, there isn't any real good way. Thanks for the help. Is there any way that you can have an infinite list of all the highscores ever? Instead of just the top 3?

Professional web developer and lead engineer on the Scratch Wiki
Maybe the Scratch Team isn't so bad — Please be excellent to each other
- SFollis
-
500+ posts
How to do Cloud Highscores?
sadly, not very easy, you would have to basically do the top three, (like i did) but… difference. 1st place first, then second and it just keeps adding. So it would sort of look like this 1205080302306500 then it adds more onto that. Also, it would have to input it into a list when it hits 00 but not any 0 after that. I have only a few projects that do this, but they wouldn't have names. Only coordinates. Also, it would eventually break because it contains SO much information it would turn into this: ‘1.635e+153’ like normal variables. Better to wait for cloud lists Thanks for the help. Is there any way that you can have an infinite list of all the highscores ever? Instead of just the top 3?

- EATMYHEAD
-
42 posts
How to do Cloud Highscores?
SOS!!!!!!!!!!!!!!!!!!!!!!! IM A SCRATCHER AND I CANNOT ACCESS CLOUD DATA!!!!!!!!!!!!!!11PLEASE HELP!!!!!!!!!!!!!!
- Discussion Forums
- » Questions about Scratch
-
» How to do Cloud Highscores?