This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-10-12 19:53:57

dna07
New Scratcher
Registered: 2010-10-11
Posts: 2

How do I make a top 5 high score list for my game?

I just seem to figure out how to make a top 5 high scores list in my snake game. I know that i shout use "make a list" from the variables, but I can't figure out the remaining steps! If you need more details, please let me know!

Offline

 

#2 2010-10-12 20:05:01

vortex19
Scratcher
Registered: 2009-06-03
Posts: 100+

Re: How do I make a top 5 high score list for my game?

http://scratch.mit.edu/projects/vortex19/820640
Feel free to download and use. You can't save the highscores online though, so you'll have to do it in the description.

Last edited by vortex19 (2010-10-12 20:05:39)

Offline

 

#3 2010-10-12 21:05:01

dna07
New Scratcher
Registered: 2010-10-11
Posts: 2

Re: How do I make a top 5 high score list for my game?

Yeah, I don't need to save it online. i just need it to show the top 5 scores for personal use.

Offline

 

#4 2010-10-12 21:44:18

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: How do I make a top 5 high score list for my game?

Just have a list that checks the value of your score against the list of top 5 scores. If your score is higher than a score on the list, insert it above that score, and delete the last item (item 6) of the list. Hope that helps!


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer