Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to use cloud variables....
- Ralphina1
-
8 posts
How to use cloud variables....
I want to make an online world, and I heard that cloud variables work over multiple computers. How do I script that???
~Ralphina1
~Ralphina1
- bullelk12
-
100+ posts
How to use cloud variables....
It would probably be best to wait until cloud lists to do that. And as for making your project, that's not really something someone can simply tell you how to do. Because it really just depends on what you want for the project. I want to make an online world, and I heard that cloud variables work over multiple computers. How do I script that???
~Ralphina1
- EdgeGamer
-
100+ posts
How to use cloud variables....
When you create a variable, where is usually says For All Sprites/For This Sprite Only, you can also check a box called ‘Cloud Variable’. Basically, this sets it as a cloud variable. When a script in the project changes changes a cloud variable, it changes for everybody else in the world who is playing it, too. There is a delay between it changing for the person who caused the change and it changing for everybody else, but it is not a long delay. Still, this delay may make online worlds hard to make. Physically making the online game is very hard because you would need variables that track where about a player is, and then make their sprite go to that location on everybody else's version of the project, if you get what I mean. Like bullelk said (sort of rudely, actually, you only wanted to know how to use them) you had best wait for cloud lists, as they will make multiplayer online worlds far easier to make and far better.
- itsmomito
-
100+ posts
How to use cloud variables....
Hahaha! I couldn't wait for the lists and actually attempted it! Soon enough, many people joined the development team
It works out pretty well though, just extremely laggy. When lists come out, the lag will be fixed immediately! It's got:
1) Customization: Hair, Skin, Gender
2) Currency (Gold & Silver)
3) Real Time Position Updating ( ScrollX/ScrollY)
4) Disconnection Timer (If you don't log out, you will be logged out anyway)
5) Username Login (Secure, No password required)
6) Safe Chat System
7) 4-way scrolling, collision detection, leveling/exp system, and much much more! All stored in cloud variables
Currently working on adding npcs, shops, improving houses, adding more objects and a cloud quest system!
http://beta.scratch.mit.edu/projects/10085751/

1) Customization: Hair, Skin, Gender
2) Currency (Gold & Silver)
3) Real Time Position Updating ( ScrollX/ScrollY)
4) Disconnection Timer (If you don't log out, you will be logged out anyway)
5) Username Login (Secure, No password required)
6) Safe Chat System
7) 4-way scrolling, collision detection, leveling/exp system, and much much more! All stored in cloud variables

Currently working on adding npcs, shops, improving houses, adding more objects and a cloud quest system!

http://beta.scratch.mit.edu/projects/10085751/
Last edited by itsmomito (April 29, 2013 23:26:43)
- Rub0Gameton
-
100+ posts
How to use cloud variables....
Too soon to tell. It will really depend on how Scratch will handle it, because I believe the delay is still in place. When lists come out, the lag will be fixed immediately!

- itsmomito
-
100+ posts
How to use cloud variables....
Too soon to tell. It will really depend on how Scratch will handle it, because I believe the delay is still in place. When lists come out, the lag will be fixed immediately!
Hmm.. the cloud update time lag will still be in place :'(. But, the lag created from using a single variable to store 3000+ digit values will be most likely eliminated! Instead of having to constantly load the variable values into a list (Not actually necessary) or updating the variable by taking the entire variable and combining it with the new value, they will already be in a list, so some lag should be gone!

- Rub0Gameton
-
100+ posts
How to use cloud variables....
I guess we'll have to wait for cloud lists to come out.Too soon to tell. It will really depend on how Scratch will handle it, because I believe the delay is still in place. When lists come out, the lag will be fixed immediately!
Hmm.. the cloud update time lag will still be in place :'(. But, the lag created from using a single variable to store 3000+ digit values will be most likely eliminated! Instead of having to constantly load the variable values into a list (Not actually necessary) or updating the variable by taking the entire variable and combining it with the new value, they will already be in a list, so some lag should be gone!
- Gaza101
-
500+ posts
How to use cloud variables....
I want to make an online world, and I heard that cloud variables work over multiple computers. How do I script that???
~Ralphina1
An online world would involve cloud lists, you've got a big challenge on your hands if you're going to try and use variables. I would wait until lists are released

- MelonInc
-
100+ posts
How to use cloud variables....
You don't necessarily need a list. Here are some ideas:
Create multiple (or one) maps or scenes for the people to go on. Store the background or costume number in a variable.
Use variables to store x,y positions
Use a variable to hold currency
Use a variable to store outfit color
But remember that as of now cloud variables only hold numbers.
Create multiple (or one) maps or scenes for the people to go on. Store the background or costume number in a variable.
Use variables to store x,y positions
Use a variable to hold currency
Use a variable to store outfit color
But remember that as of now cloud variables only hold numbers.
- irishkid200
-
6 posts
How to use cloud variables....
I wanna know how cloud variables work. How can you use them to make some kind of MMO FPS game? ~Tyler
Last edited by irishkid200 (June 11, 2013 00:06:08)
- Znapi
-
500+ posts
How to use cloud variables....
Cloud lists will be really helpful. I've made an MMO engine, but ever since I added safe chat, it's gotten extremely laggy. Parsing that variable takes forever.
- monkeytrooper
-
1000+ posts
How to use cloud variables....
I wanna know how cloud variables work. ~Tyler
same here
- deck26
-
1000+ posts
How to use cloud variables....
Instead of necroposting (the post you added to had been dead for 8 months) you should create your own topic. However this is a frequently asked question on the forum so a bit of searching should find an answer. You should also read http://wiki.scratch.mit.edu/wiki/Global_High_Scores if you're interested in how to store non-numeric data.I wanna know how cloud variables work. ~Tyler
same here
- -mino-
-
2 posts
How to use cloud variables....
i wish cloud lists are available soon because i wanna make a data base (password-username) where i can link data from games to
OR does anyone already have an idea how to make that?
+ what can you do with it? i know already alot about variables
OR does anyone already have an idea how to make that?
+ what can you do with it? i know already alot about variables
Last edited by -mino- (April 5, 2015 14:35:43)
- Oshawottlovestacos
-
3 posts
How to use cloud variables....
To keep things constantly updated…
- alexfuentes
-
2 posts
How to use cloud variables....
guys go to the scratch wiki it tells the command
- UltimateLOTR
-
1 post
How to use cloud variables....
I don`t have the cloud box on the make variable box so how do I do that!
- deck26
-
1000+ posts
How to use cloud variables....
how do I do that!I don`t have the cloud box on the make variable box so You're still ‘New to Scratch’ and can't use cloud variables yet. Once you're a Scratcher you can use them.
- Discussion Forums
- » Help with Scripts
-
» How to use cloud variables....