Discuss Scratch

joshuaho
Scratcher
1000+ posts

Cloud Data

I have a game that has scoring, and it also asks scratchers to post their scores in the comments. However, the problem would be that some scratchers might lie about their score. Like, if they only got a score of 565, but they posted 676, that would be a lie, but since the number isn't that high, I might just put their score in the leaderboard, without knowing that they lied. But, since cloud data would be a effective barrier against lies, I wanted to use it.

So…. my question is:
How do I use the scripts for cloud data? I already know how to make a cloud variable, but I don't know what scripts to use to make it run correctly.

I'm not sure if there is a topic about this already, but if you happen to find this topic as a duplicate of another one, please let me know and I will close this topic as soon as possible.

College student studying Communication and Fire Technology, communication lab tutor, guitar and piano player, perfectionist, and just some guy who regularly eats and trains physically to stay healthy.
drmcw
Scratcher
1000+ posts

Cloud Data

if score > high score then
set high score to score

where high score is your cloud variable ans score the variable containing the score.

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

Cloud Data

OBTW, they just may have made a mistake.

http://scratch.mit.edu/projects/11259573/ generates a leaderboard

You also could have your score increment my some weird #, like 7, If the reported scored is not divisible by 7 then it is not being accurately reported.

Last edited by scubajerry (Aug. 21, 2013 08:48:23)

Powered by DjangoBB