Discuss Scratch

Kirby_Kinda_smort
Scratcher
33 posts

Highscore Variables not saving for friends?

Hello Scratch. I have a problem where my highscore variable in my game isn't keeping track of my friend's highscores. It works for me but doesn't for my friends. I tried to change things around and nothing worked so far. Any help?
Link: https://scratch.mit.edu/projects/616333782/

Last edited by Kirby_Kinda_smort (Dec. 16, 2021 17:11:21)


Wanna play a game? Try this: https://scratch.mit.edu/projects/616333782/
when green flag clicked
forever
ask [the meaning of life] and wait
end
deck26
Scratcher
1000+ posts

Highscore Variables not saving for friends?

You forgot the link. Are your friends names stored in the project? Are you using cloud variables and if so how?
Kirby_Kinda_smort
Scratcher
33 posts

Highscore Variables not saving for friends?

deck26 wrote:

You forgot the link. Are your friends names stored in the project? Are you using cloud variables and if so how?
Whoops Idk how I left the link out. Im just recording their highscore numbers. I didn't added any names. Cloud variables are being used for the Highscore variable.
My friends play the game and get a highscore and it would show up in the highscore variable (when they die, the variable appears). But when they reload the page, it doesn't show and revert back to the old highscore. You can check the project to see yourself.

Wanna play a game? Try this: https://scratch.mit.edu/projects/616333782/
when green flag clicked
forever
ask [the meaning of life] and wait
end
deck26
Scratcher
1000+ posts

Highscore Variables not saving for friends?

So it's just a high score for friends or anyone else.. Where's the code? It may just be general flakiness of cloud variables at the moment.
Kirby_Kinda_smort
Scratcher
33 posts

Highscore Variables not saving for friends?

deck26 wrote:

So it's just a high score for friends or anyone else.. Where's the code? It may just be general flakiness of cloud variables at the moment.
Its under the player sprite. If its cloud variables being weird at the moment, I wouldn't mind.

Wanna play a game? Try this: https://scratch.mit.edu/projects/616333782/
when green flag clicked
forever
ask [the meaning of life] and wait
end
deck26
Scratcher
1000+ posts

Highscore Variables not saving for friends?

The script in Player looks fine but where does that broadcast come from and what other receivers are there. If it is broadcast in a loop the receivers could be constantly restarting and not managing to run or another receiver may be doing something like stop all. Otherwise, if all the references to teh cloud variable are in that sprite all looks fine and it may just be cloud vars glitching a bit.
Kirby_Kinda_smort
Scratcher
33 posts

Highscore Variables not saving for friends?

deck26 wrote:

The script in Player looks fine but where does that broadcast come from and what other receivers are there. If it is broadcast in a loop the receivers could be constantly restarting and not managing to run or another receiver may be doing something like stop all. Otherwise, if all the references to teh cloud variable are in that sprite all looks fine and it may just be cloud vars glitching a bit.
Im guessing it's that. Some people played and got a highscore that did register. So thanks anyways.

Wanna play a game? Try this: https://scratch.mit.edu/projects/616333782/
when green flag clicked
forever
ask [the meaning of life] and wait
end

Powered by DjangoBB