Discuss Scratch

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:

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.

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?
nXIII
Scratcher
1000+ posts

Please Test My Highscore Table

BoltBait
If they enter the empty string, it will simply prompt them the next time they run the project.
True, but I think it's better to force them so you have something to display in the scoreboard.
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.
nXIII
Scratcher
1000+ posts

Please Test My Highscore Table

BoltBait
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.
Oh, I see. Good point. Maybe you could prompt them at the end of the game as well if they haven't entered their name—?

Last edited by nXIII (Dec. 16, 2012 19:25:39)

BoltBait
Scratcher
1000+ posts

Please Test My Highscore Table

After some testing, this is what I found:

http://alpha.scratch.mit.edu/forums/topic/664/
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)?
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

Anyone else want to test my Top Ten Players list?

You can now access the list right from the title page.

Are you included? Are you better than your friends?

Only one way to find out… Click!
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!
ErnieParke
Scratcher
1000+ posts

Please Test My Highscore Table

BoltBait wrote:

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!
Well I'll stop by your project tomorrow, though right now, it's late.
ErnieParke
Scratcher
1000+ posts

Please Test My Highscore Table

ErnieParke wrote:

BoltBait wrote:

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!
Well I'll stop by your project tomorrow, though right now, it's late.
Okay, so I just played Forum Tower Defense and I got 24,570. Also, I was user 94.
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.
ErnieParke
Scratcher
1000+ posts

Please Test My Highscore Table

BoltBait wrote:

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.
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?
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

jamescrowe wrote:

could someone show me how to create a high score table using lists which puts them in order high to low
You might want to post that in Help With Scripts.
Scratchifier
Scratcher
1000+ posts

Please Test My Highscore Table

Paddle2See wrote:

jamescrowe wrote:

could someone show me how to create a high score table using lists which puts them in order high to low
You 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

Scratchifier wrote:

Paddle2See wrote:

jamescrowe wrote:

could someone show me how to create a high score table using lists which puts them in order high to low
You 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.
Fair point - doing so now.

Powered by DjangoBB