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

#1601 2010-08-28 16:13:43

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

TheExternal wrote:

Every BIG project I found is loaded w/ variables.(When I think about it... no duh!  tongue ) I know this is a lot to ask but:

What I Said Earlier wrote:

I have a suggestion for 3.1!!! How about the option to choose wether or not a variable, created w/in a block can be global.

I thought this was adequately answered before: the feature you want already exists!

In the Variables palette there is a dark grey block called Script Variables.  You can put this block in any script, both the ones in the Block Editor and the regular Scratch-scripting-area scripts, to create variables local to that script.

To give a script variable a value, first attach a SET block to the script, then pull down the pulldown list of variable names, and you'll find the script variables included.  If the SET block is just floating around loose in the scripting area, script variables aren't included.

To use the value of a script variable within the script, just drag the variable blob off the Script Variables block onto wherever you want to use it.

Note: If "Scope Contrast" is checked in the Edit menu, then the variable blobs for script variables are brown instead of orange, so that you can see quickly the scope of a variable used in a script.  ("Scope" is the technical term for where in a program a given variable can be used -- everywhere, or just within a particular script.)  Try using BYOB with and without this feature enabled and tell us if you like it.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#1602 2010-08-28 16:17:22

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

But, Chris, I honestly didn't realize until this message that your concern was about discussing politics at all, rather than just about discussing it in the BYOB3 forum.  So I haven't been taking your concern as seriously as it deserves; I've been sort of teasing you about what I took as a mere bureaucratic issue.  I'm sorry.  I feel nothing but respect toward you, too, and it may not have seemed that way.

Awww :3 *blushes*

bharvey wrote:

But I don't think you could characterize any of this discussion as trolling; everyone is expressing sincerely held views politely and calmly.  Also, I think that in practice "no political views" means "no non-mainstream political views."  For example, recently we've seen a lot of signatures rooting for the poster's country's Olympic teams.  That's political!  It encourages national patriotism.  But nobody objects because national patriotism is mainstream.  But when I encourage internationalism and class consciousness, that's "political."

Patriotism and stuff like olympics is much different from politics, in my sincere opinion.


http://i.imgur.com/WBkM2QQ.png

Offline

 

#1603 2010-08-28 16:19:51

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

TheExternal wrote:

How about the option to choose wether or not a variable, created w/in a block can be global.

Oh, wait, maybe I'm confused about what you want.  Are you asking for a New Variable block that can be used inside a script but that creates a global variable?  Why do you want that, as opposed to just using Make a variable once?  What should happen the second time you run the script, and the variable already exists?  Or are you asking for a Panther-like block that takes a text string input (which could be computed, and therefore could be different each time the script runs) and makes a global variable by that name?

I don't think we should encourage people to make millions of global variables.  Better to make one global variable, put a list in it, and add to the list each time you run the script.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#1604 2010-08-28 21:26:59

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

I think what he wants (and I want) is a block-only variable option. That way we can have blocks that affect each other (like the "set pen color" block).

Offline

 

#1605 2010-08-28 21:50:03

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

I think what he wants (and I want) is a block-only variable option. That way we can have blocks that affect each other (like the "set pen color" block).

That would be cool!


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#1606 2010-08-28 22:25:58

PyrosTheStickman
Scratcher
Registered: 2009-09-19
Posts: 53

Re: BYOB 3 - Discussion Thread

I hope that the Scratch team soon allows BYOB uploads!!!

Offline

 

#1607 2010-08-28 22:28:43

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: BYOB 3 - Discussion Thread

PyrosTheStickman wrote:

I hope that the Scratch team soon allows BYOB uploads!!!

I think they might put something like BYOB into Scratch 2.0.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#1608 2010-08-28 22:32:22

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: BYOB 3 - Discussion Thread

ScratchReallyROCKS wrote:

PyrosTheStickman wrote:

I hope that the Scratch team soon allows BYOB uploads!!!

I think they might put something like BYOB into Scratch 2.0.

Or at least some of the features. They're still deciding... and we're still pursuading  tongue

Last edited by Lucario621 (2010-08-28 22:32:34)


http://i.imgur.com/WBkM2QQ.png

Offline

 

#1609 2010-08-28 22:33:30

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: BYOB 3 - Discussion Thread

I think it's high on Scratch Suggestions - maybe there's a hope!  smile


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#1610 2010-08-28 22:34:52

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Lucario621 wrote:

ScratchReallyROCKS wrote:

PyrosTheStickman wrote:

I hope that the Scratch team soon allows BYOB uploads!!!

I think they might put something like BYOB into Scratch 2.0.

Or at least some of the features. They're still deciding... and we're still pursuading  tongue

actually, I think they've committed to having custom procedures in Scratch 2.0.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#1611 2010-08-28 22:55:03

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Chrischb wrote:

I think it's high on Scratch Suggestions - maybe there's a hope!  smile

Not anymore. For some reason people want customizable user pages more than they do BYOB3.

It really makes you think about the Scratch community, doesn't it?  hmm

Offline

 

#1612 2010-08-28 22:56:31

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Oh yes.  sad

But then again, not everyone knows about BYOB and stuff like that...


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#1613 2010-08-28 23:35:21

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

I think what he wants (and I want) is a block-only variable option. That way we can have blocks that affect each other (like the "set pen color" block).

I'm sorry, I'm not understanding this.  Do you mean a persistent script variable?  One that can only be seen by the block, but that keeps its value between invocations?  Or do you mean a variable that any block can see, but not top-level scripts?

We can sort of do the persistent variable thing, following the OOP example in the manual.  You'd have a block MAKE PEN COLOR BLOCKS that would have a script variable PCOLOR, and then it would say

Code:

SET <set pen color> [THE SCRIPT [SET <pcolor> < >]]
SET <pen color> [THE <pcolor> BLOCK]

The thing you'd then want, which we can't do yet, is have a way to make a sprite-local variable for all sprites at once -- a third option "for each sprite separately" in the make-a-variable dialog.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#1614 2010-08-28 23:41:15

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

ScratchReallyROCKS wrote:

actually, I think they've committed to having custom procedures in Scratch 2.0.

My understanding of the discussion at the conference is that they're committed to procedures of some sort for sure, and almost certainly procedures that can take inputs, but not necessarily ones with output (reporters); it might be commands only.

Unless things change a lot, that means there will probably be a separate BYOB for some time, if not forever.

As for uploading BYOB projects to the Scratch site, some of the Scratch Team like that idea some of the time.  (Modded-Scratch projects in general, not just BYOB.)  Since they're going to allow uploading of things other than projects (e.g. costumes) it's not such a stretch to have a category for that.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#1615 2010-08-28 23:47:18

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Chrischb wrote:

I think it's high on Scratch Suggestions - maybe there's a hope!  smile

Not anymore. For some reason people want customizable user pages more than they do BYOB3.

It really makes you think about the Scratch community, doesn't it?  hmm

At this moment, BYOB is in fifth place.  I don't think that's so bad.

Consider that only about 1/4 of Scratchers upload any projects at all, not even the zero-script kind.  For the other 3/4, the interface of the web site is more important than anything about programming.

And BYOB is pretty esoteric.  You suggest something about making animation easier and everybody will see right away why it's useful.  But "first class data"?  Most Scratchers have no idea what that is, and not all of them would understand the explanation; this is something that appeals mostly to older Scratchers.

Mitchel was very explicit in saying that the "low floor" part of Scratch is more important than the "high ceiling" part, but that both are important.  I think that's entirely right.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#1616 2010-08-29 02:09:57

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

shadow_7283 wrote:

Chrischb wrote:

I think it's high on Scratch Suggestions - maybe there's a hope!  smile

Not anymore. For some reason people want customizable user pages more than they do BYOB3.

It really makes you think about the Scratch community, doesn't it?  hmm

At this moment, BYOB is in fifth place.  I don't think that's so bad.

Consider that only about 1/4 of Scratchers upload any projects at all, not even the zero-script kind.  For the other 3/4, the interface of the web site is more important than anything about programming.

And BYOB is pretty esoteric.  You suggest something about making animation easier and everybody will see right away why it's useful.  But "first class data"?  Most Scratchers have no idea what that is, and not all of them would understand the explanation; this is something that appeals mostly to older Scratchers.

Mitchel was very explicit in saying that the "low floor" part of Scratch is more important than the "high ceiling" part, but that both are important.  I think that's entirely right.

Eh... very well said. But only a quarter of Scratchers share projects like that?  yikes


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#1617 2010-08-29 08:56:06

TheExternal
Scratcher
Registered: 2008-11-04
Posts: 54

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

I think what he wants (and I want) is a block-only variable option. That way we can have blocks that affect each other (like the "set pen color" block).

this is what i meant... sry for not making it clear and starting making every1 else confused  sad  i should research more before i say something like that :\


http://i37.tinypic.com/2jdp99s.png
The funniest thing about this quote is that by the time you realize it doesn't say anything of importance, it's too late to stop reading it.

Offline

 

#1618 2010-08-29 12:35:22

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Chrischb wrote:

But only a quarter of Scratchers share projects like that?

Scratch front page wrote:

Community Stats
597,764 registered members,
167,169 project creators,
1,261,347 projects. That's a lot of Scratch-ing!


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#1619 2010-08-29 14:20:25

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

To use the value of a script variable within the script, just drag the variable blob off the Script Variables block onto wherever you want to use it..

Byob is very flexible and rich to set and use variables :
1 - The Scratch way with option for Global/local
2 - The Byob  "Script variable " block, which can be used either into scripts or blocks. Very useful during the elaborating phase of a procedure. Variables defined in this block don't stay permanently, disappearing when the script finishes.
3 - Inside the Block editor you can define local variables  into the variable panel (personally I don't see one advantage upon the "Script variable" block).
4 - Variables can also  be stored into a global list of variables. You can use this method to store parameters, object properties, initialization variables, levels of a game etc One advantage is that you have not to give them names ( I use the first line of the list to store the name (or property) of the Item as to remind the role of each Item). Each sprite can access to these "list" variables.

Offline

 

#1620 2010-08-29 21:08:49

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

xly wrote:

2 - The Byob  "Script variable " block, which can be used either into scripts or blocks. Very useful during the elaborating phase of a procedure. Variables defined in this block don't stay permanently, disappearing when the script finishes.

... except that the script can report another script or block that refers to the script variable, in which case it does stay permanently, even though it's accessible only from inside that reported script.  (This is how we do OOP instance variables.)

3 - Inside the Block editor you can define local variables  into the variable panel (personally I don't see one advantage upon the "Script variable" block).

Neither do we.  At some point we'll probably eliminate that inner "make a variable" button, which we kept only for compatibility with BYOB2.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#1621 2010-08-30 02:14:47

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Chrischb wrote:

But only a quarter of Scratchers share projects like that?

Scratch front page wrote:

Community Stats
597,764 registered members,
167,169 project creators,
1,261,347 projects. That's a lot of Scratch-ing!

yikes  I haven't looked there in ages... ^^


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#1622 2010-08-30 02:52:03

fanhost
New Scratcher
Registered: 2010-08-19
Posts: 12

Re: BYOB 3 - Discussion Thread

Hey.. Thanks for the link.. It seems to be interesting..

Offline

 

#1623 2010-08-30 07:22:00

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

@Jens

I've remarked several times that Byob does not like too long "Comments". When I try to make many comments, at a moment the Byob screen becomes fuzzy, the control is lost and so one...It's probably a question of buffer overflow (?)

Offline

 

#1624 2010-08-30 08:03:41

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hi Xavier,

hmm, I have not yet experienced this bug myself, but then, I don't comment that much  smile

I don't think it's a buffer overflow, because each costume uses up much more space. But it could be a bug in the alignment mechanism. Could could maybe post (or better: Send me) a project of yours in which this problems occurs? I'd be happy to investigate into this.

Thanks!


Jens Mönig

Offline

 

#1625 2010-08-30 19:06:44

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

*bump*

Offline

 

Board footer