Discuss Scratch
- Discussion Forums
- » Suggestions
- » Please Test My Highscore Table
- BoltBait
-
Scratcher
1000+ posts
Please Test My Highscore Table
I have added a high score table to my Tower Defense game.
You can only see it once you finish a game.
Please let me know if it is working well. If it is working without errors, I'll make a button to view it before playing a game.
http://alpha.scratch.mit.edu/projects/1897019
Thanks!
I have two cloud lists, one contains a list of all user names for people that have played the game and the other contains a list of their highest score.
Here are the scripts I'm using:
When Green Flag clicked, I'm doing this:

That should keep both lists filled with entries for everyone… even if they haven't played a game yet. It will put a blank in for their name and a 0 in for their high score.
When the game starts, I get the user's name and replace the blank in the list with their supplied name:

Then, when it is time to calculate your score and show the Top 10 list, I do this:

You can only see it once you finish a game.
Please let me know if it is working well. If it is working without errors, I'll make a button to view it before playing a game.
http://alpha.scratch.mit.edu/projects/1897019
Thanks!
I have two cloud lists, one contains a list of all user names for people that have played the game and the other contains a list of their highest score.
Here are the scripts I'm using:
When Green Flag clicked, I'm doing this:

That should keep both lists filled with entries for everyone… even if they haven't played a game yet. It will put a blank in for their name and a 0 in for their high score.
When the game starts, I get the user's name and replace the blank in the list with their supplied name:

Then, when it is time to calculate your score and show the Top 10 list, I do this:

Last edited by BoltBait (Dec. 16, 2012 18:43:26)
- nXIII
-
Scratcher
1000+ posts
Please Test My Highscore Table
In your username prompt, you might want to <repeat until not answer = ‘'> so people can’t set their username to an empty string; you should also probably check against names containing only spaces, names that are already taken, and really long names.
EDIT: Oh, and trimming whitespace from names might be a good idea as well.
EDIT: Oh, and trimming whitespace from names might be a good idea as well.
Last edited by nXIII (Dec. 16, 2012 19:15:03)
- BoltBait
-
Scratcher
1000+ posts
Please Test My Highscore Table
If they enter the empty string, it will simply prompt them the next time they run the project.
As for the other stuff, I'll think about it. Thanks!
BTW, did everything run fine for you when you checked it? Is the basic functionality of the high score table working as expected?
As for the other stuff, I'll think about it. Thanks!
BTW, did everything run fine for you when you checked it? Is the basic functionality of the high score table working as expected?
- nXIII
-
Scratcher
1000+ posts
Please Test My Highscore Table
BoltBaitTrue, but I think it's better to force them so you have something to display in the scoreboard.
If they enter the empty string, it will simply prompt them the next time they run the project.
BTW, did everything run fine for you when you checked it? Is the basic functionality of the high score table working as expected?The above was just based on static analysis (I haven't actually played it yet
)Last edited by nXIII (Dec. 16, 2012 19:22:46)
- BoltBait
-
Scratcher
1000+ posts
Please Test My Highscore Table
I wouldn't want to keep someone from playing my game simply because they didn't want to enter their name.
If they are embarrassed of the score they might get, etc.
So, later if they get a good score they can enter their name the next time the project is run and everything will be saved.
If they are embarrassed of the score they might get, etc.
So, later if they get a good score they can enter their name the next time the project is run and everything will be saved.
- nXIII
-
Scratcher
1000+ posts
Please Test My Highscore Table
BoltBaitOh, I see. Good point. Maybe you could prompt them at the end of the game as well if they haven't entered their name—?
I wouldn't want to keep someone from playing my game simply because they didn't want to enter their name.
If they are embarrassed of the score they might get, etc.
So, later if they get a good score they can enter their name the next time the project is run and everything will be saved.
Last edited by nXIII (Dec. 16, 2012 19:25:39)
- BoltBait
-
Scratcher
1000+ posts
Please Test My Highscore Table
I would like to know why the post I made detailing all the issues I found with Cloud variables was deleted.
This one: http://alpha.scratch.mit.edu/forums/topic/664/
Was the information incorrect? Do you want to keep my findings private?
Or, was it one of the words in the title of the post (that could have easily been edited by a mod)?
This one: http://alpha.scratch.mit.edu/forums/topic/664/
Was the information incorrect? Do you want to keep my findings private?
Or, was it one of the words in the title of the post (that could have easily been edited by a mod)?
- Lightnin
-
Scratcher
1000+ posts
Please Test My Highscore Table
Hey BoltBait - I sent you an email about it.
- BoltBait
-
Scratcher
1000+ posts
Please Test My Highscore Table
I think my high score table is somehow stuck?! I see that 2 people played and didn't register.
Can someone that's never played my tower defense game, please help me by running and playing a game? It will tell you your user ID number. To help me, please post that number in a comment.
This would really help me. Thanks!
Can someone that's never played my tower defense game, please help me by running and playing a game? It will tell you your user ID number. To help me, please post that number in a comment.
This would really help me. Thanks!
- ErnieParke
-
Scratcher
1000+ posts
Please Test My Highscore Table
I think my high score table is somehow stuck?! I see that 2 people played and didn't register.Well I'll stop by your project tomorrow, though right now, it's late.
Can someone that's never played my tower defense game, please help me by running and playing a game? It will tell you your user ID number. To help me, please post that number in a comment.
This would really help me. Thanks!
- ErnieParke
-
Scratcher
1000+ posts
Please Test My Highscore Table
Okay, so I just played Forum Tower Defense and I got 24,570. Also, I was user 94.I think my high score table is somehow stuck?! I see that 2 people played and didn't register.Well I'll stop by your project tomorrow, though right now, it's late.
Can someone that's never played my tower defense game, please help me by running and playing a game? It will tell you your user ID number. To help me, please post that number in a comment.
This would really help me. Thanks!
- BoltBait
-
Scratcher
1000+ posts
Please Test My Highscore Table
Thanks for the info.
BTW, the top 10 list didn't update because the cloud variables are turned off right now. Hopefully the Scratch team will fix the cloud variables issues and the userid block issues and turn everything back on very soon.
BTW, the top 10 list didn't update because the cloud variables are turned off right now. Hopefully the Scratch team will fix the cloud variables issues and the userid block issues and turn everything back on very soon.
- ErnieParke
-
Scratcher
1000+ posts
Please Test My Highscore Table
Thanks for the info.Well I was guessing that that might've been happening. Also, did you know that there's a glitch in your game where if the square flowing your mouse turns green, if you click, and if where you clicked was an invalid building spot, then you'd lose 5 karma?
BTW, the top 10 list didn't update because the cloud variables are turned off right now. Hopefully the Scratch team will fix the cloud variables issues and the userid block issues and turn everything back on very soon.
- jamescrowe
-
Scratcher
1 post
Please Test My Highscore Table
could someone show me how to create a high score table using lists which puts them in order high to low
- Paddle2See
-
Scratch Team
1000+ posts
Please Test My Highscore Table
could someone show me how to create a high score table using lists which puts them in order high to lowYou might want to post that in Help With Scripts.
- Scratchifier
-
Scratcher
1000+ posts
Please Test My Highscore Table
could someone show me how to create a high score table using lists which puts them in order high to lowYou might want to post that in Help With Scripts.
You should also probably close this forum thread… that was sort of a necropost, as cloud lists don't exist anymore.

- Harakou
-
Scratcher
1000+ posts
Please Test My Highscore Table
Fair point - doing so now.could someone show me how to create a high score table using lists which puts them in order high to lowYou might want to post that in Help With Scripts.
You should also probably close this forum thread… that was sort of a necropost, as cloud lists don't exist anymore.
- Discussion Forums
- » Suggestions
-
» Please Test My Highscore Table
