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

#3701 2011-09-17 09:40:42

Taneb
Scratcher
Registered: 2009-07-07
Posts: 100+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Anyway, my guess was that Taneb was talking about Jens's pre-pre-pre-pre-alpha Snap!, which recently got a Script Variables block, in which you can change the "name" of the "variable" (in quotes because I don't think this block actually does anything yet) by right-clicking it, selecting the ReporterBlock (the "a" circle), and editing the box that pops up.  smile

Yeah, thanks, that's what I meant

Also, feature request: a way to modify a list outside a block from within the block, so I could create, for example, a reverse-in-place block.

Offline

 

#3702 2011-09-17 12:08:15

Sidharth
Scratcher
Registered: 2007-12-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

Oops, I misinterpreted the question  neutral

bharvey wrote:

Hmm are you a Windows user by any chance?

I don't think uninstalling BYOB is likely to help.

1) Yes, yes I am.

2) I know, so I edited my post saying to reinstall  smile


http://www.danasoft.com/citysign.jpg

Offline

 

#3703 2011-09-17 12:11:11

technomaniac
Scratcher
Registered: 2011-08-15
Posts: 94

Re: BYOB 3 - Discussion Thread

I wanted to note that, with mods like Panther or BYOB, you could save it as a Scratch project and upload it. A lot of blocks will be tagged "obsolete!" though.

Offline

 

#3704 2011-09-17 12:28:28

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

Re: BYOB 3 - Discussion Thread

The following Snap! example uses Script Variable Instruction (SVI) modified names as suggested by bharvey. (f= first SVI level; s=second SVI level t=third SVI level ). It shows that each SVI  "knows" all variables defined by of the former SVI !

http://www.xleroy.net/ByobTuto/New/Wallpaper02.gif

Offline

 

#3705 2011-09-18 00:15:32

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

Re: BYOB 3 - Discussion Thread

Taneb wrote:

Also, feature request: a way to modify a list outside a block from within the block, so I could create, for example, a reverse-in-place block.

I'm confused; why can't you do that now?  Just have your block take the list as an input, and you can do list operations on it.


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

Offline

 

#3706 2011-09-18 00:17:21

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

Re: BYOB 3 - Discussion Thread

Sidharth wrote:

1) Yes, yes I am.

2) I know, so I edited my post saying to reinstall  smile

I don't think reinstalling will help either.  You're only saying it because that's what the Windows help desk people always say!  tongue


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

Offline

 

#3707 2011-09-18 09:41:02

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

Re: BYOB 3 - Discussion Thread

It does work on occasion, you know.  tongue

Offline

 

#3708 2011-09-18 12:58:32

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

Re: BYOB 3 - Discussion Thread

Ho folks,

I've been away from scratch/byob/snap all summer but my daughter's back in school and is doing a BYOB project for, of all things, an English class project (cool, right?).  She're using BYOB 3.1.1, and right now a little bit stuck on a detection issue.  (I'm tempted to start describing the project, which is a sort of mechanical model of cognition, in which incoming information is combined with a reservoir of knowledge to produce an output... but I think that's a little off-topic).  The issue is, how to detect if a sprite X is touching another sprite of 'kind' Y.  In Jens' ants demo (from long ago) there are a couple of blocks that help with this sort of problem:  "detect first in list such that " is used in "touched egg", which tests every object in turn for (1) touching and (2) attribute(parent)=object(egg).  This works, I guess, but in the sprites corral the us of 'kind of' in the descriptor suggests to me that there may be a simpler solution.  Is there?  If so we'd love to hear it. 

Look forward to hearing back from you guys.  Thanks as always,
Matt

Offline

 

#3709 2011-09-18 13:54:43

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

Re: BYOB 3 - Discussion Thread

titaniumbones wrote:

The issue is, how to detect if a sprite X is touching another sprite of 'kind' Y.

I think this should do it:

http://cs.berkeley.edu/~bh/touch-kind.png

Here, "ant" is the name of the parent of all the ants (type Y), and "myself" is the object that wants to know who's touching it (object X).  The OBJECT (MYSELF) block is providing an extra input to ASK that fills the input slot in the TOUCHING? block.  You can't just say TOUCHING? (OBJECT (MYSELF)) because then "myself" would be the object being asked, rather than the one doing the asking.  But the second ASK doesn't take an extra input (so you click the left arrow to get rid of the slot).

ASK and KEEP are in the tools project or ToolSprite.

Disclaimer: I haven't actually tried this.  smile

P.S.  If I were doing this myself I'd use the grey-border feature instead of explicit THE BLOCK blocks, but people seem to find it more understandable this way.  hmm

P.P.S.  As I look back on this, it's needlessly inefficient; you could just ask the parent for its ATTRIBUTE(CHILDREN) and make the TOUCHING? test on them.  But I don't have time to rewrite it just now.

P.P.P.S.  And you're right, there should be a FIND FIRST in the tools collection.  I'll do that for 4.0.

Last edited by bharvey (2011-09-18 15:40:24)


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

Offline

 

#3710 2011-09-18 14:19:36

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

It does work on occasion, you know.  tongue

It works, but it's overkill, making you redo all the customization you've done since installing whatever it was.   And since it doesn't involve actually fixing the original problem, the problem is likely to recur.


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

Offline

 

#3711 2011-09-18 14:22:58

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

Re: BYOB 3 - Discussion Thread

Wow! BYOB has really improved since I last saw it!  big_smile

Good job, Jens & Brian!  smile


Hai.

Offline

 

#3712 2011-09-18 14:36:06

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Re: BYOB 3 - Discussion Thread

Is there any way to convert a BYOB project to a scratch project? (Sorry if this has already been asked. I didn't have the patience to go through all 149 pages.)


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#3713 2011-09-18 14:52:44

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

Re: BYOB 3 - Discussion Thread

zippynk wrote:

Is there any way to convert a BYOB project to a scratch project? (Sorry if this has already been asked. I didn't have the patience to go through all 149 pages.)

I don't think so. If you haven't used any BYOB-specific blocks then you can export individual sprites and import them in Scratch (this hasn't always worked for me), but aside from that, I think it's impossible (Brian will correct me if I'm wrong).

Last edited by shadow_7283 (2011-09-18 14:53:41)

Offline

 

#3714 2011-09-18 14:54:06

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

zippynk wrote:

Is there any way to convert a BYOB project to a scratch project? (Sorry if this has already been asked. I didn't have the patience to go through all 149 pages.)

I don't think so. If you haven't used any BYOB blocks you can export individual sprites and import them in Scratch (this hasn't always worked for me), but aside from that, I think it's impossible. (Brian will correct me if I'm wrong)

BYOB exports sprites in a different filetype, so I think no. D:

Offline

 

#3715 2011-09-18 15:34:26

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

Re: BYOB 3 - Discussion Thread

zippynk wrote:

Is there any way to convert a BYOB project to a scratch project? (Sorry if this has already been asked. I didn't have the patience to go through all 149 pages.)

You're forgiven for the lack of patience because you quote John Holt in your sig!  smile   Are you a homeschooler?

And, no, as shadow and scimonster said, you can't turn a BYOB project into a Scratch project; there are too many things that just aren't readily expressible in Scratch project format.  (The whole reason you use BYOB for a project is that you need those tools!  smile  )

I think you should tell the Scratch Team, "I want a way to use the power of BYOB without isolating myself from the Scratch community!"  (I'm putting this in very general terms because every time I make a specific suggestion along these lines, there's some reason why it doesn't work for them, so I want them to come up with a solution!)


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

Offline

 

#3716 2011-09-18 15:47:07

Bookworm300
Scratcher
Registered: 2011-06-04
Posts: 28

Re: BYOB 3 - Discussion Thread

I'm confused. Is Snap done or not? If it is can you give me the link?

Offline

 

#3717 2011-09-18 20:52:41

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

Re: BYOB 3 - Discussion Thread

Bookworm300 wrote:

I'm confused. Is Snap done or not? If it is can you give me the link?

No, but if you click "4.0 status" on byob.berkeley.edu (or snap.berkeley.edu, the same page  smile  )and then click the picture, it'll take you to Jens's pre-pre-pre-pre-alpha demo.

Last edited by bharvey (2011-09-18 20:53:18)


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

Offline

 

#3718 2011-09-18 20:54:09

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

Re: BYOB 3 - Discussion Thread

fg123 wrote:

Wow! BYOB has really improved since I last saw it!

Thanks!


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

Offline

 

#3719 2011-09-19 11:50:35

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

Re: BYOB 3 - Discussion Thread

Just to put colors into this thread and show that Snap! is going on.
Credits to Harold Abelson & Andrea diSessa, MIT Press

http://www.xleroy.net/ByobTuto/New/duopoly01.gif

Offline

 

#3720 2011-09-19 11:56:56

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

Re: BYOB 3 - Discussion Thread

How did you get the text?  yikes

And BYOB is basically possible now, by using the lambada stuff.  big_smile

Offline

 

#3721 2011-09-19 12:20:28

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

Re: BYOB 3 - Discussion Thread

scimonster wrote:

BYOB is basically possible now, by using the lambada stuff.  big_smile

No, not quite yet, hold on! I'm just now working on parameter passing, recursion and closures. Then we'll be able to build our own blocks.


Jens Mönig

Offline

 

#3722 2011-09-19 12:28:33

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: BYOB 3 - Discussion Thread

found a bug with Snap!
it allows you to put a variable in the colour slot for the set pen colour to block but when you run the script, it crashes when you get to that bit.

Suggestion:
Disallow users to drag a variable into the slot.


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

Offline

 

#3723 2011-09-19 13:07:22

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

or.. implement firs class colours like in panther!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#3724 2011-09-19 13:31:02

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

or.. implement firs class colours like in panther!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I suggested first class colors a while back!  big_smile

Offline

 

#3725 2011-09-19 13:31:12

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

or.. implement first class colours like in panther!

Good idea  smile


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

Offline

 

Board footer