Discuss Scratch

Ugh2460
Scratcher
17 posts

High Scores and userID

I'm having a lot of trouble making an all-time high score system and a personal high score system for a game I'm making for Scratch 2.0. A Scratch Blog Post about 4 new features of Scratch said you could use cloud variables and lists for an all-time high score system, and you can use userID for a personal high score. But how?

EDIT: Thanks for the help, but I'm still wondering how I could use userID to create a personal high score system.

ANOTHER EDIT: I understand BoltBait's script enough to know that I need to use userIDs with a cloud list.

Last edited by Ugh2460 (Jan. 24, 2013 23:28:05)

mrsteve
Scratcher
100+ posts

High Scores and userID

In Data section of Blocks…
Clock on “Make a List” and make sure “Cloud list (stored on server)” is checked.
This will create a list in the “Cloud”. Then when ever anyone gets a score, you simply insert it into the list at the appropriate spot.

So say you have a “High Score Wins” game. You simply start at item 1 and iterate through the list until you get to a point where your score is less than another and insert accordingly.

Hope this helps.
Stephen
scimonster
Scratcher
1000+ posts

High Scores and userID

I'm planning to write a wiki tutorial on how to do this.
BoltBait
Scratcher
1000+ posts

High Scores and userID

I have added a leader board to my Tower Defense game. Check it out here: http://beta.scratch.mit.edu/projects/1897019/
Ugh2460
Scratcher
17 posts

High Scores and userID

BoltBait
I have added a leader board to my Tower Defense game. Check it out here: http://beta.scratch.mit.edu/projects/1897019/
Your programming is too complex for me to understand. (That is a complement)

What I'm doing right now is what mrsteve suggested:
mrsteve
You simply start at item 1 and iterate through the list until you get to a point where your score is less than another and insert accordingly.

But in my game, there are 4 difficulty levels, so that seemingly simple script is HUGE. Is there any way to shorten it without the Make Your Own Block feature?
BoltBait
Scratcher
1000+ posts

High Scores and userID

I have made a post where I totally describe all scripts I use to make the high score table.

You can see them here: http://beta.scratch.mit.edu/forums/topic/644/

Hope this clears things up.
PrincessPandaLover
Scratcher
1000+ posts

High Scores and userID

mrsteve wrote:

In Data section of Blocks…
Clock on “Make a List” and make sure “Cloud list (stored on server)” is checked.
This will create a list in the “Cloud”. Then when ever anyone gets a score, you simply insert it into the list at the appropriate spot.

So say you have a “High Score Wins” game. You simply start at item 1 and iterate through the list until you get to a point where your score is less than another and insert accordingly.

Hope this helps.
Stephen
Cloud lists doesn't exist yet
Paddle2See
Scratch Team
1000+ posts

High Scores and userID

PrincessPandaLover wrote:

mrsteve wrote:

In Data section of Blocks…
Clock on “Make a List” and make sure “Cloud list (stored on server)” is checked.
This will create a list in the “Cloud”. Then when ever anyone gets a score, you simply insert it into the list at the appropriate spot.

So say you have a “High Score Wins” game. You simply start at item 1 and iterate through the list until you get to a point where your score is less than another and insert accordingly.

Hope this helps.
Stephen
Cloud lists doesn't exist yet
They did exist during the Beta test - but were removed until we can deal with some moderation issues. Hopefully they will be back before too long

Powered by DjangoBB