Discuss Scratch

Depresedbird
Scratcher
59 posts

Active Players Leaderboard

how do i make a leaderboard of active players

set [death v] to [1]
kingKASEtheGREATalt
Scratcher
100+ posts

Active Players Leaderboard

you would need to encode usernames and save it to a cloud variable, keep in mind you will only be able to save up to 60 full usernames (if you use all 10 cloud variables)

Malicondi
Scratcher
1000+ posts

Active Players Leaderboard

kingKASEtheGREATalt wrote:

you would need to encode usernames and save it to a cloud variable, keep in mind you will only be able to save up to 60 full usernames (if you use all 10 cloud variables)
That's only if every username is 20 characters long, say the average username is 10 characters long, you can store up to double that amount.

post #1000 post #100 i help in the forums post #1 post #500 0 second ninja
I recommend reading jvvg's essay about the scratch team before complaining, as it may change your opinion and provide insight on the topic.

coming soon :)


Depresedbird
Scratcher
59 posts

Active Players Leaderboard

kingKASEtheGREATalt wrote:

you would need to encode usernames and save it to a cloud variable, keep in mind you will only be able to save up to 60 full usernames (if you use all 10 cloud variables)
How would i make that?

set [death v] to [1]
homewins
Scratcher
45 posts

Active Players Leaderboard

Are you talking about in a cloud multiplayer game? Basically you need to make a list of every player's score, and use a list-sorting algorithm to sort it, and then attach each player's username back to the now sorted values.

If you show me the project I could help.
Depresedbird
Scratcher
59 posts

Active Players Leaderboard

homewins wrote:

Are you talking about in a cloud multiplayer game? Basically you need to make a list of every player's score, and use a list-sorting algorithm to sort it, and then attach each player's username back to the now sorted values.

If you show me the project I could help.
im talking about players that are currently playing

set [death v] to [1]

Powered by DjangoBB