Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Highscore Variables not saving for friends?
- 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/
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?
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. You forgot the link. Are your friends names stored in the project? Are you using cloud variables and if so how?
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?
Its under the player sprite. If its cloud variables being weird at the moment, I wouldn't mind. 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.
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?
Im guessing it's that. Some people played and got a highscore that did register. So thanks anyways. 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.
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
- Discussion Forums
- » Help with Scripts
- » Highscore Variables not saving for friends?