Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » <Cloud Variables>
- Pr0z4ever
-
18 posts
<Cloud Variables>
Ok, just a heads up,
I SERIOUSLY need this question answered, because otherwise, it will screw up my entire project.
We need to talk about this:
The question is as follows:
Do cloud variables save after the project ends, and *are they saved for each seperate user? (*Will one person's save interfere with another's?)
I have a project that I am working on, it's called Cafe Corp (not self advertising btw) and in it, I need a lot of things to save, so the user will pick up the game from where they left it. I also haven't shared the prototype of the game, mainly because I'm NOWHERE near done with it.
Let's give an example, to help you understand.
Let's say for User 1 that:
If User 2 boots up the game this is what his variable should be, (if this question of mine is correct):
So Question number one:
DO CLOUD VARIABLES DIFFER FOR DIFFERENT USERS?
Now let's say User 1 stops the project.
Who knows why, but that's not the point.
If variables saved then, when they start up the project, this should happen:
So question number two:
DO CLOUD VARIABLES SAVE?
Thank you ever so much for taking the time to read this, and have a nice day.
- Pr0z4ever
I SERIOUSLY need this question answered, because otherwise, it will screw up my entire project.
We need to talk about this:
No, not money, but cloud variables in general. There's one question for me that needs answering ASAP.
The question is as follows:
Do cloud variables save after the project ends, and *are they saved for each seperate user? (*Will one person's save interfere with another's?)
I have a project that I am working on, it's called Cafe Corp (not self advertising btw) and in it, I need a lot of things to save, so the user will pick up the game from where they left it. I also haven't shared the prototype of the game, mainly because I'm NOWHERE near done with it.
Let's give an example, to help you understand.
Let's say for User 1 that:
If User 2 boots up the game this is what his variable should be, (if this question of mine is correct):
So Question number one:
DO CLOUD VARIABLES DIFFER FOR DIFFERENT USERS?
Now let's say User 1 stops the project.
Who knows why, but that's not the point.
If variables saved then, when they start up the project, this should happen:
So question number two:
DO CLOUD VARIABLES SAVE?
Thank you ever so much for taking the time to read this, and have a nice day.

- Pr0z4ever
- Pr0z4ever
-
18 posts
<Cloud Variables>
P.S Please reply when you can, and if you can answer this question.
I'll look into it myself as well.
- Pr0z4ever
I'll look into it myself as well.
- Pr0z4ever
- deck26
-
1000+ posts
<Cloud Variables>
A cloud variable is the same for all users. If you want individual users to have their own values you need to store usernames and values - see the wiki page on Global High Scores for example.
- Pr0z4ever
-
18 posts
<Cloud Variables>
@deck26 | I understand where you are coming from, but I have Usernames saved.
In my introduction scene, I ask for the player's username, and what ever they type, will be sending a signal to trigger a saving process.
Here is a brief rundown.
In my introduction scene, I ask for the player's username, and what ever they type, will be sending a signal to trigger a saving process.
Here is a brief rundown.
- Pr0z4ever
-
18 posts
<Cloud Variables>
P.s: I do not need to put the names on a list. I need the game to remember them, and when they reload the game, for their stats to be saved and not deterred by anybody else's save.
- ElosMaster13
-
49 posts
<Cloud Variables>
Do you want to save things for each person in your game? Do you know that you can use only numbers, there's a max size of cloud variable and they can only be 10 for project?
Cloud variables are global for everyone.. people will see the same thing
Cloud variables are global for everyone.. people will see the same thing
Last edited by ElosMaster13 (June 9, 2019 19:12:51)
- deck26
-
1000+ posts
<Cloud Variables>
There's no point setting a cloud variable to a username - it won't save it to the cloud. The only way to save a score for a user is to do what I suggested.
- Pr0z4ever
-
18 posts
<Cloud Variables>
@ElosMaster13 | Yes, I want to save things for each person in my game, and I tried setting Cloud Variables to words, and it works. But when I reload the project, it's not there.
- Pr0z4ever
-
18 posts
<Cloud Variables>
@deck26 | Wait, are you kidding me?
So, basically I wasted 10+ hours of my time on a stupid game that doesn't even save names.
So, basically I wasted 10+ hours of my time on a stupid game that doesn't even save names.
- ElosMaster13
-
49 posts
<Cloud Variables>
You need to save username as numbers.. but there are too many limits for doing this, I haven't understood why the scratch team did this… Cloud variables are useless now
- deck26
-
1000+ posts
<Cloud Variables>
An alternative is to give the user a save code that they can then input next time. You'll need to work out what needs saving and how but it's easier than using the cloud. @deck26 | Wait, are you kidding me?
So, basically I wasted 10+ hours of my time on a stupid game that doesn't even save names.
Last edited by deck26 (June 9, 2019 19:40:00)
- Nambaseking01
-
1000+ posts
<Cloud Variables>
Hello there!
First of all, cloud variables stay the same for everyone. If there was Player 1 and Player 2, the value of the variable will stay the same for the both of them even if it increases or decreases. Do remember that if you over-use cloud variables (let's say change it like every single second) that it will disconnect from the server.
Well, you did not actually totally waste your time. Now you have learnt your lesson and will never use letters or symbols in cloud variables ever again. But if you necessarily have to save usernames to the cloud, then you have to look at Mr_Custom's script package on how to encode letters into a code and decode it back to the username when the game starts.
Hopefully this helped, bye!
First of all, cloud variables stay the same for everyone. If there was Player 1 and Player 2, the value of the variable will stay the same for the both of them even if it increases or decreases. Do remember that if you over-use cloud variables (let's say change it like every single second) that it will disconnect from the server.
@deck26 | Wait, are you kidding me?
So, basically I wasted 10+ hours of my time on a stupid game that doesn't even save names.
Well, you did not actually totally waste your time. Now you have learnt your lesson and will never use letters or symbols in cloud variables ever again. But if you necessarily have to save usernames to the cloud, then you have to look at Mr_Custom's script package on how to encode letters into a code and decode it back to the username when the game starts.
Hopefully this helped, bye!

- Pr0z4ever
-
18 posts
<Cloud Variables>
I know right?? You need to save username as numbers.. but there are too many limits for doing this, I haven't understood why the scratch team did this… Cloud variables are useless now
- Pr0z4ever
-
18 posts
<Cloud Variables>
@ElosMaster13 | @ NambaseKing|@deck26
I'd like you all to know, I think I've found a solution to my problems.
Instead of using a cloud variable to save names, I'll use a non-cloud variant of my current setup.
That way it can register letters. Unless of course, non-cloud variables can't take letters, because if that's true. then WHAT IS the point.
I'd like you all to know, I think I've found a solution to my problems.
Instead of using a cloud variable to save names, I'll use a non-cloud variant of my current setup.
That way it can register letters. Unless of course, non-cloud variables can't take letters, because if that's true. then WHAT IS the point.
- Pr0z4ever
-
18 posts
<Cloud Variables>
P.s I'd also like to thank you all for the responses I got. Until the discussion forums, I looked through studio after studio to find active users.
I found the forums and now my problems are solved. I'll do some testing on my game (which I may release a prototype of in the coming months)
and see if my theories are busted, or brilliant.
Thanks for reading, and have a nice day.
Pr0z4ever
I found the forums and now my problems are solved. I'll do some testing on my game (which I may release a prototype of in the coming months)
and see if my theories are busted, or brilliant.
Thanks for reading, and have a nice day.

Pr0z4ever
- cong_forum
-
100+ posts
<Cloud Variables>
Cloud variables DO save unless you are a New Scratcher. If you want different ‘money’ for every player, you need to set a ‘cloud list’ using the encoding and decoding method.
Ya know, you can order in shops ^_^ (not getting off topic here) P.s I'd also like to thank you all for the responses I got. Until the discussion forums, I looked through studio after studio to find active users.
I found the forums and now my problems are solved. I'll do some testing on my game (which I may release a prototype of in the coming months)
and see if my theories are busted, or brilliant.
Thanks for reading, and have a nice day.
Pr0z4ever
- deck26
-
1000+ posts
<Cloud Variables>
But any data you store will be lost when the project is reloaded - you do realise that? The only data that is persistent is data in cloud variables or data saved in the project by the owner saving the project in that state. @ElosMaster13 | @ NambaseKing|@deck26
I'd like you all to know, I think I've found a solution to my problems.
Instead of using a cloud variable to save names, I'll use a non-cloud variant of my current setup.
That way it can register letters. Unless of course, non-cloud variables can't take letters, because if that's true. then WHAT IS the point.
- Pr0z4ever
-
18 posts
<Cloud Variables>
.
I've realised that. FLIP.But any data you store will be lost when the project is reloaded - you do realise that? The only data that is persistent is data in cloud variables or data saved in the project by the owner saving the project in that state. @ElosMaster13 | @ NambaseKing|@deck26
I'd like you all to know, I think I've found a solution to my problems.
Instead of using a cloud variable to save names, I'll use a non-cloud variant of my current setup.
That way it can register letters. Unless of course, non-cloud variables can't take letters, because if that's true. then WHAT IS the point.
- Pr0z4ever
-
18 posts
<Cloud Variables>
.I've realised that. FLIP.But any data you store will be lost when the project is reloaded - you do realise that? The only data that is persistent is data in cloud variables or data saved in the project by the owner saving the project in that state. @ElosMaster13 | @ NambaseKing|@deck26
I'd like you all to know, I think I've found a solution to my problems.
Instead of using a cloud variable to save names, I'll use a non-cloud variant of my current setup.
That way it can register letters. Unless of course, non-cloud variables can't take letters, because if that's true. then WHAT IS the point.
How about this, I just realised… this game doesn't need to save the names. It can just ask each time you log on.
- Discussion Forums
- » Help with Scripts
-
» <Cloud Variables>