Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » I need help making a CLOUD leaderboard in scratch!!!
- codenumber491
-
14 posts
I need help making a CLOUD leaderboard in scratch!!!
I need help making a CLOUD leaderboard in scratch!!!
Please help me!!!
Please help me!!!
- CATSAREAMAZING-
-
100+ posts
I need help making a CLOUD leaderboard in scratch!!!
You need to make a cloud variable first. After that, you can code something along the lines of
foreverBasically you need to set a HIGH SCORE first, then the first player who beats it will be on the leaderboard. The code for the list will add the highest scorer in first place, and boost everyone else down 1.
if <(score) > (☁ HIGH SCORE)> then
set (☁ HIGH SCORE) to (score)
insert (username) at (1 v) of [TOP SCORERS]
end
end
- Scratch137
-
1000+ posts
I need help making a CLOUD leaderboard in scratch!!!
(#2)This script will work for creating a high score variable, but lists are exclusively local and will not be saved when you leave the page.
You need to make a cloud variable first. After that, you can code something along the lines offoreverBasically you need to set a HIGH SCORE first, then the first player who beats it will be on the leaderboard. The code for the list will add the highest scorer in first place, and boost everyone else down 1.
if <(score) > (☁ HIGH SCORE)> then
set [HIGH SCORE v] to (score)
insert (username) at (1 v) of [TOP SCORERS v]
end
end
Scratch does not support creating cloud lists due to server constraints and moderation concerns.
See my post here for information on how you could work around this.
- HoodieCoder
-
54 posts
I need help making a CLOUD leaderboard in scratch!!!
You need to make a cloud variable first. After that, you can code something along the lines of
That is what you should do.
foreverBasically you need to set a HIGH SCORE first, then the first player who beats it will be on the leaderboard. The code for the list will add the highest scorer in first place, and boost everyone else down 1.
if <(score) > (☁ HIGH SCORE)> then
set (☁ HIGH SCORE) to (score)
insert (username) at (1 v) of [TOP SCORERS]
end
end
That is what you should do.
- Window_Panelol
-
2 posts
I need help making a CLOUD leaderboard in scratch!!!
@CATSAREAMAZING- thanks lol
- Discussion Forums
- » Help with Scripts
-
» I need help making a CLOUD leaderboard in scratch!!!