Discuss Scratch

Its_a_Llama
Scratcher
8 posts

Username Highscore

OK- I know how to use a normal high score in numbers… but how do I display the username of the person who got the highscore with it?

I need to know for the new game I made!

Please help!
drmcw
Scratcher
1000+ posts

Username Highscore

(username)

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
Its_a_Llama
Scratcher
8 posts

Username Highscore

I know how to use the username brick, I just don't know how to get it to change when someone else gets a high score.
drmcw
Scratcher
1000+ posts

Username Highscore

It changes automatically to whoever is logged into Scratch. If you want to save the highscore and username then you need to store them in cloud variables.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
MegaApuTurkUltra
Scratcher
1000+ posts

Username Highscore

I think (correct me if I'm wrong) that you want a cloud powered leaderboard for your game (where the top people's usernames are shown with their scores). To do this you could make a cloud list. I posted a guide to making cloud lists here, you may find it helpful. Once you have code for a cloud list engine, just save people's scores by
enter (join(username)(join[: ](score))) to cloud list::custom

$(".box-head")[0].textContent = "committing AT crimes since $whenever"
Its_a_Llama
Scratcher
8 posts

Username Highscore

MegaApuTurkUltra wrote:

I think (correct me if I'm wrong) that you want a cloud powered leaderboard for your game (where the top people's usernames are shown with their scores). To do this you could make a cloud list. I posted a guide to making cloud lists here, you may find it helpful. Once you have code for a cloud list engine, just save people's scores by
enter (join(username)(join[: ](score))) to cloud list::custom
Thank You! Exactly what I need.

Powered by DjangoBB