Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Variable+Username on a variable
- Chromograph
-
28 posts
Variable+Username on a variable
I'm currently trying to make a high score system for a game i'm making (plug moment), and i've pretty much got everything down:
The script for high scores:
the script for other scores:
and the script for if the high score is beaten:
Now, what i want to do is add names to the scores, like so:
1234 <-user6969_Xxx
soooo… how do i do that???
The script for high scores:
the script for other scores:
and the script for if the high score is beaten:
Now, what i want to do is add names to the scores, like so:
1234 <-user6969_Xxx
soooo… how do i do that???
- Hockeycat88
-
48 posts
Variable+Username on a variable
Cloud variables cannot have letters, only numbers. If you want to get a players name in the cloud highscore, use an encoder/decoder like this one: https://scratch.mit.edu/projects/316635358/
It basically takes the name, saves it, and uploads it into the list while navigating around the fact that cloud variables can't save letters. Good luck!
It basically takes the name, saves it, and uploads it into the list while navigating around the fact that cloud variables can't save letters. Good luck!
- Discussion Forums
- » Help with Scripts
-
» Variable+Username on a variable