Discuss Scratch

abe27633
Scratcher
41 posts

How to make a high score list?

I am testing things out right now but I wonder how you make one… Help appreciated.
ParkerS98
Scratcher
46 posts

How to make a high score list?

You need to use cloud variables for your high scores, then add them into a list and show the list.

sonicfan12p
Scratcher
1000+ posts

How to make a high score list?

I have a project which does this, the scripts are very easy to implement too! Let me dig up its link…

Edit: Here you go! The installation instructions are in the project notes. There are comments in the Username Scripts sprite telling you how to modify it to your needs.

Last edited by sonicfan12p (Nov. 20, 2013 15:55:49)

Cmcdonald1spac
Scratcher
2 posts

How to make a high score list?

You need to go data and make a variable named score. After you use score you are going to have to make a list and name it top 10 or however many score use want. after you do that you are going to need block if then block under control, then put a greater than block into the IF THEN block. Once you've done that you can put if the score is greater than 1st place change the score. you can do this for all scores and then you will be set.
abe27633
Scratcher
41 posts

How to make a high score list?

Ok, thanks. I'll try out later.
Lightsaber43
Scratcher
7 posts

How to make a high score list?

what do I name the block
aliceonearth
New Scratcher
1 post

How to make a high score list?

How do you make a high score block?:/
dabest007
Scratcher
2 posts

How to make a high score list?

i dun know
twobrains
Scratcher
4 posts

How to make a high score list?

merr
RPFluffy
Scratcher
1000+ posts

How to make a high score list?

abe27633 wrote:

I am testing things out right now but I wonder how you make one… Help appreciated.
Try this:

whenclickedforeverifscorevar>HighscoreCloudVarthensetHighscoreCloudVartoscorevar

Last edited by RPFluffy (Nov. 8, 2014 14:22:37)

BeeBoy10
Scratcher
48 posts

How to make a high score list?

Here is how to make a (global) highscore:

whenIreceive???ifGlobalHigscore<YourFinalScorethensetGlobal HighscoretoYourFinalScore

Here is how to reset the Global Highscore:

whenclickedchangePlaysby1waituntilPlays=#setGlobal Highscoreto0setPlaysto0

I hope this helps! But It is very important that Plays and Global Highscore are Cloud Variable, otherwise this trick won't work.

Last edited by BeeBoy10 (Dec. 7, 2014 22:10:29)

themuffincrew
Scratcher
1 post

How to make a high score list?

I did this also, I'm new to writing in code so I hope I do well.
whenclickedforeverifHighscore<ScorethensetHighscoretoScore

Last edited by themuffincrew (Dec. 17, 2014 23:11:55)

LocoTest
Scratcher
57 posts

How to make a high score list?

here is a demo of how to score and sort high scores using lists
HashtagSuper111
Scratcher
24 posts

How to make a high score list?

Lightsaber43 wrote:

what do I name the block
I don't think it matters
P444
Scratcher
500+ posts

How to make a high score list?

Try this . . .
whenIreceivegame overifclouddatahighscore<score thensetcloud data highscoretoscore
Thankfulcheese1
Scratcher
2 posts

How to make a high score list?

try this I use it in my game http://scratch.mit.edu/projects/24078057/
whenclickedforeverifscorehighscorethenset high scoretoscore

Last edited by Thankfulcheese1 (Jan. 19, 2015 19:14:14)

ivoryhs
Scratcher
5 posts

How to make a high score list?

How to you make a highscore board that includes usernames as well?

Thanks
_-GalaxyCode-_
Scratcher
6 posts

How to make a high score list?

BeeBoy10 wrote:

Here is how to make a (global) highscore:

whenIreceive???ifGlobalHigscore<YourFinalScorethensetGlobal HighscoretoYourFinalScore

Here is how to reset the Global Highscore:

whenclickedchangePlaysby1waituntilPlays=#setGlobal Highscoreto0setPlaysto0

I hope this helps! But It is very important that Plays and Global Highscore are Cloud Variable, otherwise this trick won't work.
it doesn't work for me. http://scratch.mit.edu/projects/38312258/#player I want the high score to stay the same for the next person who plays the game.

Last edited by _-GalaxyCode-_ (Feb. 28, 2015 20:29:32)

sageharry
New Scratcher
1 post

How to make a high score list?

This didn't work for me
HashtagSuper111
Scratcher
24 posts

How to make a high score list?

HashtagSuper111 wrote:

Lightsaber43 wrote:

what do I name the block
I don't think it matters
It doesn't

Powered by DjangoBB