Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » High score username
- Xyyzzz
-
79 posts
High score username
Hi guys.
I am trying to make my game display the player's name that got the top score. So far, I got it to check if the player beat the top score, make their username process through the selected allowed characters, and if so, individually add each character as a new item in a list. The problem is, I can't make it so that their name displays without having to go through numerical conversions.
Project: http://scratch.mit.edu/projects/14377135/
The high scores stuff is in Stage. You can change the name to your own to test the scripts.
Thanks in advance!
I am trying to make my game display the player's name that got the top score. So far, I got it to check if the player beat the top score, make their username process through the selected allowed characters, and if so, individually add each character as a new item in a list. The problem is, I can't make it so that their name displays without having to go through numerical conversions.
Project: http://scratch.mit.edu/projects/14377135/
The high scores stuff is in Stage. You can change the name to your own to test the scripts.
Thanks in advance!
- fyromaniac1
-
100+ posts
High score username
I think I can help…
To make a highscore:
To make a highscore that shows username:
Make a new cloud variable
I really hope this helps!
To make a highscore:
To make a highscore that shows username:
Make a new cloud variable
I really hope this helps!

- Kayah
-
42 posts
High score username
or like this: I think I can help…
To make a highscore:
To make a highscore that shows username:
Make a new cloud variable
I really hope this helps!
Last edited by Kayah (Dec. 3, 2013 12:15:23)
- Sonickyle
-
1000+ posts
High score username
Cloud variables don't support strings, so that won't work. You have to convert the username into numbers.or like this: I think I can help…
To make a highscore:
To make a highscore that shows username:
Make a new cloud variable
I really hope this helps!
- The_Grits
-
1000+ posts
High score username
Yes, you will have to convert the username to numbers.Cloud variables don't support strings, so that won't work. You have to convert the username into numbers.or like this: I think I can help…
To make a highscore:
To make a highscore that shows username:
Make a new cloud variable
I really hope this helps!
If you need a converter, I have made one that you can use.
Fyromaniac1's script for the highscore is excellent.
If you need more help just ask!
The_Grits
- Xyyzzz
-
79 posts
High score username
Thanks for the encoding script, grits. Do you also know how to decode it into letters? I may be able to make it but the problem is I don't know how to make the script read two specific digits in the same variable. I tried doing ‘i’ and ‘i + 1’ but it doesn't seem to work..
- The_Grits
-
1000+ posts
High score username
From numbers to letters? I could make an update in a couple of days if you are willing to wait…. 

- ZippyZak
-
29 posts
High score username
Try converting letters to numbers. like 2-digit numbers like 01=a and 11=k. and have it re-converted. If you need help with it I can make a project demonstrating it. But don't use it for a chat-room or anything.
- Discussion Forums
- » Help with Scripts
-
» High score username