Discuss Scratch

Chromograph
Scratcher
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:
inserthighscoreat1ofscores

the script for other scores:
addscoretoscores

and the script for if the high score is beaten:
sethighscore ☁toscore ☁

Now, what i want to do is add names to the scores, like so:
1234 <-user6969_Xxx

soooo… how do i do that???
Hockeycat88
Scratcher
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!

Powered by DjangoBB