Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do you make a cloud save and a cloud load?
- miles854
-
Scratcher
100+ posts
How do you make a cloud save and a cloud load?
How do you make it so you can save your earned money and bought upgrades in the cloud? I wanna let users also be able to load there save from a different account then the one there save is on but only by asking me so they don't pull up a random persons save. I need help with this for my Scratch Cat Clicker game. That game is my version of the game Cookie Clicker.
- Programming_Guru
-
Scratcher
84 posts
How do you make a cloud save and a cloud load?
Such a task would be insurmountable to my knowledge without cloud lists, or cloud Strings. You'd need to store their username using the username block, and you'd need to do it for more than one person. Which is how a cloud variable could work. Or you could do it a SUPER complicated way like this which would accommodate our current Scratch Resources: 2 cloud variables 2 local variables. Cloud variable 1: Stores usernames in their numeric equivalent. Cloud variable 2: Stores their corresponding money number. Local variable 1: adds username of person playing to cloud variable with a join block. (when finished this data is transferred to cloud variable 1) cloud variable 2: adds money equivalent of current player to cloud variable with join block.
Was I helpful? If not please click on my name and comment on my profile with further questions. (Whereas I'm not following this discussion and won't know if you reply.) *50th post.*
Was I helpful? If not please click on my name and comment on my profile with further questions. (Whereas I'm not following this discussion and won't know if you reply.) *50th post.*

- sk321
-
New Scratcher
4 posts
How do you make a cloud save and a cloud load?
I don't think that is possible.
- deck26
-
Scratcher
1000+ posts
How do you make a cloud save and a cloud load?
http://scratch.mit.edu/discuss/topic/72128/ covers a similar topic
Last edited by deck26 (Dec. 29, 2014 20:03:44)
- gtoal
-
Scratcher
1000+ posts
How do you make a cloud save and a cloud load?
How do you make it so you can save your earned money and bought upgrades in the cloud? I wanna let users also be able to load there save from a different account then the one there save is on but only by asking me so they don't pull up a random persons save. I need help with this for my Scratch Cat Clicker game. That game is my version of the game Cookie Clicker.
The simple part of saving/loading cloud data is relatively easy - there are lots of projects here that save high scores for example - look at any of those for ideas.
The tricky part is how you insert yourself in the process of transferring data from one user to another. I'm assuming this is not real-time but something that you check on a few times during the day. You will need a “god mode” that unlocks extra functionality only for you. All you need to do is add that code wrapped in a test for “username” equal to “miles854”. No-one else will be able to run that code, even if they look inside the source.
G
- miles854
-
Scratcher
100+ posts
How do you make a cloud save and a cloud load?
Such a task would be insurmountable to my knowledge without cloud lists, or cloud Strings. You'd need to store their username using the username block, and you'd need to do it for more than one person. Which is how a cloud variable could work. Or you could do it a SUPER complicated way like this which would accommodate our current Scratch Resources: 2 cloud variables 2 local variables. Cloud variable 1: Stores usernames in their numeric equivalent. Cloud variable 2: Stores their corresponding money number. Local variable 1: adds username of person playing to cloud variable with a join block. (when finished this data is transferred to cloud variable 1) cloud variable 2: adds money equivalent of current player to cloud variable with join block.
Was I helpful? If not please click on my name and comment on my profile with further questions. (Whereas I'm not following this discussion and won't know if you reply.) *50th post.*
Helpefull but I still think saving with the cloud would be easier then you described it to be.
- Pepperoni505
-
Scratcher
100+ posts
How do you make a cloud save and a cloud load?
Hi, im making a cloud save and upload game i will send you the link when done (it is possible cause i DID it)
- deck26
-
Scratcher
1000+ posts
How do you make a cloud save and a cloud load?
how to create thisPlease create a new topic rather than necroposting. The wiki page on Global High Scores shows how to encode usernames to save a list of usernames and values which is essentially what you need.
- Discussion Forums
- » Help with Scripts
-
» How do you make a cloud save and a cloud load?