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

#3176 2011-05-01 19:52:01

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

Re: BYOB 3 - Discussion Thread

Jens is back!  Here's another 3.1 beta image.

Jens wrote:

This beta release once again lets you set a sprite's local variable from within another sprite which does not happen to have a same named variable of its own. I'm including a (particularly mindless, sorry) example. Thanks, Scott, for bringing this problem to my attention!


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

Offline

 

#3177 2011-05-01 19:52:59

thebuilderdd
Scratcher
Registered: 2008-01-26
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Here is a great suggestion: After you make a block, you can right click and view the squeak or panther code.

Offline

 

#3178 2011-05-01 20:48:19

SSBBM
Scratcher
Registered: 2009-10-09
Posts: 100+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Try clicking "clear all variables" in the edit menu before saving.  Does that fix it?

I don't see a "clear all variables" button... I do have a "unload unused blocks" button. (Which I have found very helpful, by the way.)


http://goo.gl/zVfAp http://goo.gl/laci8

Offline

 

#3179 2011-05-01 21:05:25

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: BYOB 3 - Discussion Thread

SSBBM wrote:

bharvey wrote:

Try clicking "clear all variables" in the edit menu before saving.  Does that fix it?

I don't see a "clear all variables" button... I do have a "unload unused blocks" button. (Which I have found very helpful, by the way.)

Under the edit menu.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#3180 2011-05-01 21:46:35

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

Re: BYOB 3 - Discussion Thread

thebuilderdd wrote:

Here is a great suggestion: After you make a block, you can right click and view the squeak or panther code.

We're going to do that in the new Javascript-based version this summer.


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

Offline

 

#3181 2011-05-01 21:48:03

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

Re: BYOB 3 - Discussion Thread

SSBBM wrote:

I don't see a "clear all variables" button.

If not, you don't have the latest release (five messages ago  smile  ).


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

Offline

 

#3182 2011-05-02 02:47:48

DarthPickley
Scratcher
Registered: 2008-06-13
Posts: 100+

Re: BYOB 3 - Discussion Thread

hey, I like the beta so far!

also, why is (pigl [ ] ) in the tools sprite? I'm probably never going to need to use it as a tool, and if I did need to use it I would make it myself.

Offline

 

#3183 2011-05-02 12:25:36

SSBBM
Scratcher
Registered: 2009-10-09
Posts: 100+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

SSBBM wrote:

I don't see a "clear all variables" button.

If not, you don't have the latest release (five messages ago  smile  ).

It works in 3.1 without the clearing all the variables! Thanks!


http://goo.gl/zVfAp http://goo.gl/laci8

Offline

 

#3184 2011-05-02 12:58:13

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

Re: BYOB 3 - Discussion Thread

DarthPickley wrote:

also, why is (pigl [ ] ) in the tools sprite?

Yeah, some of those blocks are there not as tools but as examples, used in the ToolSprite's scripting area.  I guess I should make those sprite-local so they get deleted when you delete the sprite.  I'll work on that...


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

Offline

 

#3185 2011-05-02 12:59:18

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

DarthPickley wrote:

also, why is (pigl [ ] ) in the tools sprite?

Yeah, some of those blocks are there not as tools but as examples, used in the ToolSprite's scripting area.  I guess I should make those sprite-local so they get deleted when you delete the sprite.  I'll work on that...

Hey, I want pigl for my pig-Latin translator! It takes a sentence and makes it pig-Latin.

Offline

 

#3186 2011-05-02 21:29:04

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

Re: BYOB 3 - Discussion Thread

Though I've checked this topic daily, I haven't really been active...  hmm
But the Windows Installer motivated me to give BYOB 3.1 a try!  big_smile  It's pretty cool!

One thing I noticed, is when two sprites are both parented to each other, only one of the sprites shares the other's variables. For example the Scratch cat is parented to Alonzo, and Alonzo is parented to the Scratch cat, and the Scratch cat gets Alonzo's variables, but Alonzo doesn't get the Scratch cat's variables.

Though I thought this situation was impossible in the first place, it doesn't seem to work correctly.

Last edited by shadow_7283 (2011-05-02 21:29:49)

Offline

 

#3187 2011-05-02 23:27:19

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

Re: BYOB 3 - Discussion Thread

Here are the full release packages corresponding to the 2-May-2011 beta:

Macintosh

Windows installer and files only

Last edited by bharvey (2011-05-05 13:45:03)


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

Offline

 

#3188 2011-05-02 23:29:33

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

when two sprites are both parented to each other

Ugh.  Indeed, that shouldn't be allowed.


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

Offline

 

#3189 2011-05-03 05:22:54

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: BYOB 3 - Discussion Thread

Why did you decide to make the new BYOB version in Java (as opposed to flash or some other programming language)? Not that I have anything against Java, I'm just wondering why you decided to use it.


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#3190 2011-05-03 06:41:21

titaniumbones
Scratcher
Registered: 2010-04-20
Posts: 8

Re: BYOB 3 - Discussion Thread

floppy_gunk wrote:

Why did you decide to make the new BYOB version in Java (as opposed to flash or some other programming language)? Not that I have anything against Java, I'm just wondering why you decided to use it.

Javascript, not Java.  Jens and Brian can answer this better, but I believe the idea is to have something written in a language that can render anywhere, including a browser; and (tell me if I'm wrong as I don't speak javascript) that language has pretty robust features that support the first-order objects BYOB wants to create. 

Also, though I haven't noticed these guys saying it, Flash is a proprietary platform which always hides the source code from the end user, and which will hopefully be replaced for almost all uses once HTML5 is more widely implemented, due to the <video> and <canvas> tags in that standard.  Javascript, on the other hand, is the future of the web.

Offline

 

#3191 2011-05-03 07:49:30

darko3
New Scratcher
Registered: 2011-05-03
Posts: 1

Re: BYOB 3 - Discussion Thread

Great Work

Offline

 

#3192 2011-05-03 10:22:09

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

Re: BYOB 3 - Discussion Thread

titaniumbones wrote:

Javascript, not Java.  Jens and Brian can answer this better, but I believe the idea is to have something written in a language that can render anywhere, including a browser; and (tell me if I'm wrong as I don't speak javascript) that language has pretty robust features that support the first-order objects BYOB wants to create.

Yes, exactly.  I'm not personally very excited about running in a browser, but it's important because some schools have paranoid sysadmins who won't let teachers install software locally.  (Personally if I were a paranoid sysadmin I'd be more worried about the stuff that runs in a browser, but I've never seen a school district that uses Privoxy or Ad Block Plus.  But that's a different rant.)  Plus there's that other smartphone competing with Android that doesn't allow programming languages on the phone.  And Javascript has lambda, so it's good enough.

Also, though I haven't noticed these guys saying it, Flash is a proprietary platform which always hides the source code from the end user, and which will hopefully be replaced for almost all uses once HTML5 is more widely implemented, due to the <video> and <canvas> tags in that standard.  Javascript, on the other hand, is the future of the web.

Yeah, that too.  I'm not making any predictions about the future of the web, but Javascript is clearly the present of the web.  And I'm glad to be using an open platform.  (The Scratch Team would be happier with it, too, but when they looked into it in detail there were a few things they needed that they could do in Flash but not in HTML5, at least at the time.  Sound was one problem they mentioned; I forget the rest.)


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

Offline

 

#3193 2011-05-03 10:33:19

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

titaniumbones wrote:

Javascript, not Java.  Jens and Brian can answer this better, but I believe the idea is to have something written in a language that can render anywhere, including a browser; and (tell me if I'm wrong as I don't speak javascript) that language has pretty robust features that support the first-order objects BYOB wants to create.

Yes, exactly.  I'm not personally very excited about running in a browser, but it's important because some schools have paranoid sysadmins who won't let teachers install software locally.  (Personally if I were a paranoid sysadmin I'd be more worried about the stuff that runs in a browser, but I've never seen a school district that uses Privoxy or Ad Block Plus.  But that's a different rant.)  Plus there's that other smartphone competing with Android that doesn't allow programming languages on the phone.  And Javascript has lambda, so it's good enough.

I used to go to a school that had parental controls on the computer.

Offline

 

#3194 2011-05-03 11:02:05

SSBBM
Scratcher
Registered: 2009-10-09
Posts: 100+

Re: BYOB 3 - Discussion Thread

scimonster wrote:

I used to go to a school that had parental controls on the computer.

Aren't you home schooled...


http://goo.gl/zVfAp http://goo.gl/laci8

Offline

 

#3195 2011-05-03 11:07:07

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

Re: BYOB 3 - Discussion Thread

SSBBM wrote:

scimonster wrote:

I used to go to a school that had parental controls on the computer.

Aren't you home schooled...

Used to.
I started after that year XD.

Offline

 

#3196 2011-05-03 11:42:33

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Jens is back!  Here's another 3.1 beta image.

Jens wrote:

This beta release once again lets you set a sprite's local variable from within another sprite which does not happen to have a same named variable of its own. I'm including a (particularly mindless, sorry) example. Thanks, Scott, for bringing this problem to my attention!

In your example, is there a reason to use a very complex script where a simple script as follows does the job ?

TELL object [other guy] to
SET <secret> to "kiki"
SAY <secret> for <2> secs

Offline

 

#3197 2011-05-03 14:02:13

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

Re: BYOB 3 - Discussion Thread

scimonster wrote:

SSBBM wrote:

Aren't you home schooled...

Used to.
I started after that year XD.

Wow, your parents pulled you out of school just because of its computer use policy?  smile


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

Offline

 

#3198 2011-05-03 14:05:05

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

Re: BYOB 3 - Discussion Thread

xly wrote:

TELL object [other guy] to
SET <secret> to "kiki"
SAY <secret> for <2> secs

(1) There's no TELL in BYOB.  smile   Jens was trying to demo the primitive blocks.  (2) Your script can be written only if the sprite that runs it has a variable SECRET in its scope.  The whole point of the example is how to set another sprite's variable if you don't have one of your own.

EDIT:  But, Jens, why doesn't this work:

SCRIPT VARIABLES <secret>
SET [[THE <secret> BLOCK] OF <sprite2>] TO <something>

Last edited by bharvey (2011-05-03 14:13:16)


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

Offline

 

#3199 2011-05-03 14:10:05

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

scimonster wrote:

SSBBM wrote:

Aren't you home schooled...

Used to.
I started after that year XD.

Wow, your parents pulled you out of school just because of its computer use policy?  smile

No, it was the rest of the school.  tongue

Offline

 

#3200 2011-05-03 15:17:35

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

xly wrote:

TELL object [other guy] to
SET <secret> to "kiki"
SAY <secret> for <2> secs

(1) There's no TELL in BYOB.  smile   Jens was trying to demo the primitive blocks.  (2) Your script can be written only if the sprite that runs it has a variable SECRET in its scope.  The whole point of the example is how to set another sprite's variable if you don't have one of your own.

(1) Correct. But then you can write instead:
LAUNCH [THE SCRIPT [[SET <secret> to "kiki"][SAY <secret> for <2> secs]] of <other guy>]

(2) My Alonzo has no <secret> variable in its scope, only <other guy> has one. The trick is to write this script into the <other guy > script area where <secret> is visible, and then duplicate this script into <Alonzo> script area.

Offline

 

Board footer