Discuss Scratch

CanadianGeorge
Scratcher
84 posts

Questioning some blocks...

Since all the block definitions aren't out yet, I was wondering what these blocks do:

(user ID) (explained)

(video [direction v]) on [this sprite v])

If you could tell me that would be great, ‘cause these report some confusing things so I can’t guess.

Last edited by CanadianGeorge (March 8, 2013 00:48:37)



Complete a Scratch task and win huge credit in an upcoming series of projects!
[cheeseblocks]
forever if <(musical cheese being played?) = [true]>
cover ears
else
eat musical cheese
[/cheeseblocks]
CanadianGeorge
Scratcher
84 posts

Questioning some blocks...

Bump.


Complete a Scratch task and win huge credit in an upcoming series of projects!
[cheeseblocks]
forever if <(musical cheese being played?) = [true]>
cover ears
else
eat musical cheese
[/cheeseblocks]
BoltBait
Scratcher
1000+ posts

Questioning some blocks...

The “userid” block returns the number 0 for anyone that is not logged in.

For someone that is logged in, it returns a unique number. This is so that you know if someone comes back to your project. A returning person always gets the same number.

The numbers are handed out like this:

The first person to view your project (usually you, the developer) gets the number 1.

The next person gets the number 2 and so on…

You may get the number 1 on one project and the number 105 on another project. But each time you return to a project you are given the same number as you were first assigned to that project.

The number returned by a “userid” block can be used as an index into a cloud list for storing information that you wish to recall on the next visit to that project… for example a bank balance in a black jack game, a high score in a tower defense game, or your progress in an adventure game.

Last edited by BoltBait (March 8, 2013 00:23:23)


Click to play:
CanadianGeorge
Scratcher
84 posts

Questioning some blocks...

Thank you! That solves the first one.


Complete a Scratch task and win huge credit in an upcoming series of projects!
[cheeseblocks]
forever if <(musical cheese being played?) = [true]>
cover ears
else
eat musical cheese
[/cheeseblocks]
CanadianGeorge
Scratcher
84 posts

Questioning some blocks...

Bump.


Complete a Scratch task and win huge credit in an upcoming series of projects!
[cheeseblocks]
forever if <(musical cheese being played?) = [true]>
cover ears
else
eat musical cheese
[/cheeseblocks]

Powered by DjangoBB