Discuss Scratch

Timothy9360
Scratcher
11 posts

How do you make a leaderboard?

I'm working on a game I call avoid, and I want to add a high score table. How do you do that.
And here's the game.
https://scratch.mit.edu/projects/91339497/
BKFighter
Scratcher
1000+ posts

How do you make a leaderboard?

You need cloud to use cloud variables. I would make sure you know how to use cloud variables to make a basic high score before reading this: http://wiki.scratch.mit.edu/wiki/Simple_Username_Cloud_List
Then you need to also have another list that with the score, so they are paired together.
Brontosplachna
Scratcher
100+ posts

How do you make a leaderboard?

Timothy9360
Scratcher
11 posts

How do you make a leaderboard?

Is there any other simple way using just one list.
deck26
Scratcher
1000+ posts

How do you make a leaderboard?

Timothy9360 wrote:

Is there any other simple way using just one list.
If you want to include usernames you need to encode/decode them so it's never going to be really simple. If you just want a list of scores you either restrict the length to 10 entries (max number of cloud variables) or you still have to split a cloud variable into several values which you can then store in a list.

Give more details of what you want please.

Last edited by deck26 (Jan. 27, 2016 10:57:29)

Aimeeunihornlover
Scratcher
1 post

How do you make a leaderboard?

deck26
Scratcher
1000+ posts

How do you make a leaderboard?

Aimeeunihornlover wrote:

Please don't spam.
Timothy9360
Scratcher
11 posts

How do you make a leaderboard?

So, since doing one list is going to be hard, I want to do it with 2 list so one with the username and one with the score.

Powered by DjangoBB