This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-10-08 19:36:57

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

2 Types of Cloud Variables

Okay, so:

Global Cloud Variables:
They are worldwide, storing information on everybody viewing the project as one value.

Private Cloud Variables
They store unique information for every user who views.   The values are separate for everybody.


http://i47.tinypic.com/2iaa73k.png

Offline

 

#2 2012-10-08 20:05:24

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: 2 Types of Cloud Variables

This can be done with a cloud list (or two, for safety's sake).
One for the value and one for the userID.

Offline

 

#3 2012-10-08 20:26:40

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: 2 Types of Cloud Variables

This is a great idea, but I'm nuetral on this because as kayybee said above ^^, there is a workaround.


http://i46.tinypic.com/35ismmc.png

Offline

 

#4 2012-10-08 20:34:38

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: 2 Types of Cloud Variables

But what if it's a complex game, with hundreds of values, such as xp, hp, attack, defense, and level?


http://i47.tinypic.com/2iaa73k.png

Offline

 

#5 2012-10-08 20:40:43

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: 2 Types of Cloud Variables

MOAR VARIABLES :p


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#6 2012-10-08 21:27:15

LordAwesome123
Scratcher
Registered: 2011-01-18
Posts: 100+

Re: 2 Types of Cloud Variables

+1  smile


http://i672.photobucket.com/albums/vv82/coke457/cooltext538978807.png
When life gives you lemons... take them... free stuff is cool  smile

Offline

 

#7 2012-10-08 21:35:38

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: 2 Types of Cloud Variables

berberberber wrote:

But what if it's a complex game, with hundreds of values, such as xp, hp, attack, defense, and level?

You put it in as a save code.

Such as 13c039d8f2e18a9b

Where 13 is my level, c0 is my exp, 39d is my hp, 8f is my attack, 2e is defense, 18a9b is my items, etc.

As a programmer you should be figuring out these kinds of things.

Offline

 

#8 2012-10-08 22:51:09

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: 2 Types of Cloud Variables

if you want to be organized, you will have a separate list for each variable you want to store, then add another list for user id, then have the item #'s of each list correspond to the other values in other lists that the player is storing.

Offline

 

#9 2012-10-09 00:05:33

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: 2 Types of Cloud Variables

kayybee wrote:

This can be done with a cloud list (or two, for safety's sake).
One for the value and one for the userID.

True, but it'd still be useful for the sake of simplicity - not every Scratcher will know how to implement this kind of system with good ol' lists. c:


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#10 2012-10-09 00:56:00

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: 2 Types of Cloud Variables

technoguyx wrote:

kayybee wrote:

This can be done with a cloud list (or two, for safety's sake).
One for the value and one for the userID.

True, but it'd still be useful for the sake of simplicity - not every Scratcher will know how to implement this kind of system with good ol' lists. c:

Perhaps. But this way does work.

Offline

 

#11 2012-10-09 13:29:46

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: 2 Types of Cloud Variables

technoguyx wrote:

kayybee wrote:

This can be done with a cloud list (or two, for safety's sake).
One for the value and one for the userID.

True, but it'd still be useful for the sake of simplicity - not every Scratcher will know how to implement this kind of system with good ol' lists. c:

Then they learn.  smile

Offline

 

#12 2012-10-10 12:08:57

Chokkan
New Scratcher
Registered: 2011-08-01
Posts: 9

Re: 2 Types of Cloud Variables

And what about the returning users? It would be a poor way to store their passwords in a cloud variable that anyone can see.

Offline

 

#13 2012-10-10 15:33:13

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: 2 Types of Cloud Variables

Chokkan wrote:

And what about the returning users? It would be a poor way to store their passwords in a cloud variable that anyone can see.

I don't think that the cloud variables would be viewable unless the owner of the project wants them to.


http://i46.tinypic.com/35ismmc.png

Offline

 

#14 2012-10-10 18:00:17

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: 2 Types of Cloud Variables

ErnieParke wrote:

Chokkan wrote:

And what about the returning users? It would be a poor way to store their passwords in a cloud variable that anyone can see.

I don't think that the cloud variables would be viewable unless the owner of the project wants them to.

You could just see inside...

But there's no point in having passwords stored, because you can verify people with the userid block.

Offline

 

#15 2012-10-10 18:14:43

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: 2 Types of Cloud Variables

kayybee wrote:

ErnieParke wrote:

Chokkan wrote:

And what about the returning users? It would be a poor way to store their passwords in a cloud variable that anyone can see.

I don't think that the cloud variables would be viewable unless the owner of the project wants them to.

You could just see inside...

But there's no point in having passwords stored, because you can verify people with the userid block.

Nevermind about what I said. I can see where I went astray. And yes, using the username block is much more practical.


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer