Discuss Scratch

V4nh3ls1ng
Scratcher
11 posts

How do I make a leaderboard?

Hi, I am having trouble with making a leaderboard. Please help!
mmhmBeans
Scratcher
500+ posts

How do I make a leaderboard?

There is a YT tutorial on making leaderboards.
IHEYLOOKOUTwhat
Scratcher
80 posts

How do I make a leaderboard?

human
V4nh3ls1ng
Scratcher
11 posts

How do I make a leaderboard?

mmhmBeans wrote:

There is a YT tutorial on making leaderboards.
I need it basic, not advanced. Possible if you could show me?
pasta_enjoyer7
Scratcher
1000+ posts

How do I make a leaderboard?

Please ignore this post. I accidently posted it.

Last edited by pasta_enjoyer7 (Aug. 26, 2023 00:30:01)

furrysnake
Scratcher
6 posts

How do I make a leaderboard?

Create a list in “variables” titled Leaderboard. Make it cloud, meaning it retains all its data for everyone's game. Try this:

whenclickedforeverifplayerscore>item2of☁leaderboardtheninsertitem2of☁leaderboardat3of☁leaderboardinsert(playerscore)at2of☁leaderboard

You should go from bottom to top as well. For example, if you have 5 slots on your leaderboard, you would delete the 5th slot, then set the 4th slot to the 5th slot, then the 3rd to the 4th, etc.
This might not be the best with large leaderboards but if you want a really big one there is some math that could be done to keep the blocks to a minimum. Hope this helps!

Last edited by furrysnake (Aug. 26, 2023 05:24:46)

mmhmBeans
Scratcher
500+ posts

How do I make a leaderboard?

furrysnake wrote:

(#6)
Create a list in “variables” titled Leaderboard. Make it cloud, meaning it retains all its data for everyone's game. Try this:

whenclickedforeverscratchblocksstuff

You should go from bottom to top as well. For example, if you have 5 slots on your leaderboard, you would delete the 5th slot, then set the 4th slot to the 5th slot, then the 3rd to the 4th, etc.
This might not be the best with large leaderboards but if you want a really big one there is some math that could be done to keep the blocks to a minimum. Hope this helps!

That's the problem. Cloud lists do not exist, so you have to encode everything into cloud variables.
V4nh3ls1ng
Scratcher
11 posts

How do I make a leaderboard?

furrysnake wrote:

Create a list in “variables” titled Leaderboard. Make it cloud, meaning it retains all its data for everyone's game. Try this:

whenclickedforeverifplayerscore>item2of☁leaderboardtheninsertitem2of☁leaderboardat3of☁leaderboardinsert(playerscore)at2of☁leaderboard

You should go from bottom to top as well. For example, if you have 5 slots on your leaderboard, you would delete the 5th slot, then set the 4th slot to the 5th slot, then the 3rd to the 4th, etc.
This might not be the best with large leaderboards but if you want a really big one there is some math that could be done to keep the blocks to a minimum. Hope this helps!
Does not exist.
Lemoneer
Scratcher
61 posts

How do I make a leaderboard?

V4nh3ls1ng wrote:

furrysnake wrote:

Create a list in “variables” titled Leaderboard. Make it cloud, meaning it retains all its data for everyone's game. Try this:

whenclickedforeverifplayerscore>item2of☁leaderboardtheninsertitem2of☁leaderboardat3of☁leaderboardinsert(playerscore)at2of☁leaderboard

You should go from bottom to top as well. For example, if you have 5 slots on your leaderboard, you would delete the 5th slot, then set the 4th slot to the 5th slot, then the 3rd to the 4th, etc.
This might not be the best with large leaderboards but if you want a really big one there is some math that could be done to keep the blocks to a minimum. Hope this helps!
Does not exist.
I don't have anything specific but you can try cloud variables and encoded strings. Encoded strings are lines of numbers that you can store on a cloud server, and then you can format it on a list on the client's side.
qwertycodechamp90411
Scratcher
100+ posts

How do I make a leaderboard?

I have an encoder on my profile.
NotK3ndricAlt
Scratcher
1000+ posts

How do I make a leaderboard?

V4nh3ls1ng wrote:

furrysnake wrote:

-snip-
Does not exist.
this tutorial might help you
V4nh3ls1ng
Scratcher
11 posts

How do I make a leaderboard?

NotK3ndricAlt wrote:

V4nh3ls1ng wrote:

furrysnake wrote:

-snip-
Does not exist.
this tutorial might help you
I am new to scratch, about a few months or so. I do not understand what encoding and decoding is.

Powered by DjangoBB