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

#1501 2010-08-22 14:10:43

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

This is much the same issue, actually.  BYOB doesn't know what value your reporter will report.  It might happen to be TRUE or FALSE, in which case you can use that reporter meaningfully in a Predicate slot.  But on some other occasion it might return 17.  So it's syntactically legal to put any custom reporter in a Predicate slot, but when the program actually runs, if the reporter doesn't report TRUE or FALSE, eventually some primitive block such as IF will signal an error.

I see. But this variable DID report true or false, and I still received an error when I ran the script.

Why can't we just make BYOB3 identical to JavaScript? XD

1500 post on this topic!!!!!!!!!!!!!!

Last edited by shadow_7283 (2010-08-22 14:12:27)

Offline

 

#1502 2010-08-22 15:07:29

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

But this variable DID report true or false, and I still received an error when I ran the script.

Hmm.  Please file a bug report and upload the project.
Thanks!


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

Offline

 

#1503 2010-08-22 15:57:01

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

Re: BYOB 3 - Discussion Thread

And the bug disappears into the shadows (no pun intended)...

Offline

 

#1504 2010-08-23 04:23:50

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: BYOB 3 - Discussion Thread

I made 3 new blocks in BYOB 3.0 which act the same as the create a block feature!
These can be used to create blocks in scripts, and any sprite (or even the stage) can access the block! Tip: Use broadcast for the 'run 'block' of 'sprite' for custom blocks made using my 3 blocks.

Offline

 

#1505 2010-08-23 06:04:09

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hey I made a block

johnnydean1 wrote:

Here a pic of the block:
http://a.imageshack.us/img44/5214/here.gif

Statments is a booleen true/false type list
Code is a C block type list

And what it looks like:
http://a.imageshack.us/img707/4022/proof.gif

Will it help any of you BYOBers

Last edited by johnnydean1 (2010-08-23 06:04:44)


You can now reach me on Twitter @johnnydean1_

Offline

 

#1506 2010-08-23 11:45:16

Dominic1
Scratcher
Registered: 2009-07-30
Posts: 89

Re: BYOB 3 - Discussion Thread

I have byob3 (Not alpha or beta) and one example project had nested sprites. How do you nest sprites?


http://i49.tinypic.com/oiwvh5.jpg

Offline

 

#1507 2010-08-23 12:38:50

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

Re: BYOB 3 - Discussion Thread

rdococ wrote:

I made 3 new blocks in BYOB 3.0 which act the same as the create a block feature!

Hmm, I tried clicking the link in the message but I don't see a block, only some text saying "check out this block."


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

Offline

 

#1508 2010-08-23 12:45:31

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

Re: BYOB 3 - Discussion Thread

Dominic1 wrote:

I have byob3 (Not alpha or beta) and one example project had nested sprites. How do you nest sprites?

Grab the "child" sprite in the sprite corral down in the corner of the screen, and drag it to the "parent" sprite on the stage.

The file "BYOB 2.0.pdf" in the distribution folder documents nested sprites.


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

Offline

 

#1509 2010-08-23 12:49:08

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

Re: BYOB 3 - Discussion Thread

johnnydean1 wrote:

Hey I made a block

This is kind of like the SWITCH block in tools.ypr, except that it doesn't take a value-to-test input.  I think you should use the trick that SWITCH uses (thanks to nXIII) to allow grouping each Boolean value with the corresponding code to evaluate.


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

Offline

 

#1510 2010-08-23 12:50:21

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Dominic1 wrote:

I have byob3 (Not alpha or beta) and one example project had nested sprites. How do you nest sprites?

Grab the "child" sprite in the sprite corral down in the corner of the screen, and drag it to the "parent" sprite on the stage.

The file "BYOB 2.0.pdf" in the distribution folder documents nested sprites.

Ooh, "sprite corral", that's a new one  tongue


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

Offline

 

#1511 2010-08-23 12:50:22

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

You used the "embed" feature for nesting sprites, right?


Hai.

Offline

 

#1512 2010-08-23 16:03:43

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

Re: BYOB 3 - Discussion Thread

Lucario621 wrote:

Ooh, "sprite corral", that's a new one  tongue

Does it have an official name?


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

Offline

 

#1513 2010-08-23 16:39:28

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Lucario621 wrote:

Ooh, "sprite corral", that's a new one  tongue

Does it have an official name?

No, I don't think so... in general I could call it the "sprites area" or something, but I like your idea better  tongue


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

Offline

 

#1514 2010-08-23 16:41:42

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Lucario621 wrote:

bharvey wrote:

Lucario621 wrote:

Ooh, "sprite corral", that's a new one  tongue

Does it have an official name?

No, I don't think so... in general I could call it the "sprites area" or something, but I like your idea better  tongue

I thought it was called the 'Sprite Pannel'


You can now reach me on Twitter @johnnydean1_

Offline

 

#1515 2010-08-23 16:52:11

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: BYOB 3 - Discussion Thread

It's called the 'Library'.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#1516 2010-08-23 17:26:04

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Dominic1 wrote:

I have byob3 (Not alpha or beta) and one example project had nested sprites. How do you nest sprites?

Grab the "child" sprite in the sprite corral down in the corner of the screen, and drag it to the "parent" sprite on the stage.

The file "BYOB 2.0.pdf" in the distribution folder documents nested sprites.

Since when have we had nested sprites?!?!
I had no idea!

Offline

 

#1517 2010-08-23 17:39:13

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

Re: BYOB 3 - Discussion Thread

rubiks_cube_guy238 wrote:

It's called the 'Library'.

No, I don't think so  wink

Actually, I did a little researching, and according to the Scratch Reference Guide (http://info.scratch.mit.edu/Support/Reference_Guide_1.4), if you scroll down to Scratch Interfact, you can see it's called the Sprite List.


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

Offline

 

#1518 2010-08-23 20:04:44

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Since when have we had nested sprites?!?!

Since BYOB 2!

I bet you don't know about the make-me-breakfast feature either.  smile


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

Offline

 

#1519 2010-08-23 20:30:18

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

shadow_7283 wrote:

Since when have we had nested sprites?!?!

Since BYOB 2!

I bet you don't know about the make-me-breakfast feature either.  smile

lol


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

Offline

 

#1520 2010-08-24 07:03:12

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: BYOB 3 - Discussion Thread

Lucario621 wrote:

rubiks_cube_guy238 wrote:

It's called the 'Library'.

No, I don't think so  wink

Actually, I did a little researching, and according to the Scratch Reference Guide (http://info.scratch.mit.edu/Support/Reference_Guide_1.4), if you scroll down to Scratch Interfact, you can see it's called the Sprite List.

Yes, but the class is called ScratchLibraryMorph, not ScratchSpriteListMorph.

bharvey wrote:

shadow_7283 wrote:

Since when have we had nested sprites?!?!

Since BYOB 2!

I bet you don't know about the make-me-breakfast feature either.  smile

You should add a make-me-lunch and make-a-donut feature. LOL.  tongue   big_smile   lol

Last edited by rubiks_cube_guy238 (2010-08-24 07:10:20)


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#1521 2010-08-24 10:44:22

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

shadow_7283 wrote:

Since when have we had nested sprites?!?!

Since BYOB 2!

I bet you don't know about the make-me-breakfast feature either.  smile

Code:

eat (call [make bagel] with inputs ((list [type],[filling],[extras],[toasted]) => (list [sesame],[plain cream cheese],(list <>),<true>))) until done

BYOB text evaluator anyone?  big_smile


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#1522 2010-08-24 17:20:56

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

Re: BYOB 3 - Discussion Thread

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.


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

 

#1523 2010-08-24 17:40:51

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

Re: BYOB 3 - Discussion Thread

That's a good idea. It's impossible right now to have blocks dependent on each other, which I think is pretty important.

Offline

 

#1524 2010-08-24 17:42:22

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

Re: BYOB 3 - Discussion Thread

fullmoon wrote:

I'll be in California until August 30th!

Where?  Can you come visit Berkeley?


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

Offline

 

#1525 2010-08-24 17:45:04

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

It's impossible right now to have blocks dependent on each other, which I think is pretty important.

No it's not!  One can report a value to another; one can LAUNCH another; one can set the value of an already-existing global variable (although that's the least elegant way, imho).  It might still be a good suggestion, but not for that reason, I think.


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

Offline

 

Board footer