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

#1 2011-11-14 09:49:32

kdclang
New Scratcher
Registered: 2011-06-28
Posts: 2

BYOB newbie questions

I have started using BYOB with my high school class and here are my questions.

1) Can you export or share a block between projects? How to you import or export blocks between projects?

2) Why can you not comment in the block editor? I am trying to teach documentation of code and ... this doesn't help.

Sorry if these are already answered. I am having trouble navigating the byob section of the forum using search. Any plans for a separate BYOB searchable forum?

Offline

 

#2 2011-11-14 11:02:14

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

Re: BYOB newbie questions

Hi kdclang,

it's great that you're using BYOB in your high school class! Scratch lets you share sprites between projects, and BYOB sprites take along their custom blocks, both their local ones as well as the global ones defined for the whole project. That way exported sprites become libraries for the blocks they contain. So, if you make a block "for all sprites" and then export / import a sprite from that project into another one, this global block becomes a global block in the new project as well, and stays in that project even after you delete the imported sprite. Take a look at our Tools sprite, it works like this.

Why can't you comment in the block editor? We're working on a new version in which you can.  smile

In the meantime you can define your own nop-block with a text-input slot and simply use it as comment blocks.

Das that make any sense to you?


Jens Mönig

Offline

 

#3 2011-11-14 11:05:13

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: BYOB newbie questions

kdclang wrote:

1) Can you export or share a block between projects? How to you import or export blocks between projects?

Well, the easiest way is putting the block in a blank sprite, and then exporting it, so the other students can import it.

kdclang wrote:

2) Why can you not comment in the block editor? I am trying to teach documentation of code and ... this doesn't help.

Well, I guess it's because comments are defined as stand-alone scripts, and it's not a good idea to allow more than one script per block  smile
What I do, is to define a grey block with the blockspec # %t1, leave it blank and use it like the python comments.

If you want this block to be on all your students computers, export a sprite with this block named 'default' (case sensitive) to the costumes directory.

Last edited by roijac (2011-11-14 11:12:18)

Offline

 

#4 2011-11-14 13:14:29

kdclang
New Scratcher
Registered: 2011-06-28
Posts: 2

Re: BYOB newbie questions

Thanks for the information. Will pass on to my students. Looking forward to the new version!

Offline

 

#5 2011-11-14 16:17:35

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

Re: BYOB newbie questions

for question 2: you can make a comment in the acctual script and drag it into the block editor


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

 

Board footer