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

#226 2009-07-09 10:37:36

Adamman715
Scratcher
Registered: 2009-06-13
Posts: 49

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

So, you want to define your own procedures and functions in Scratch?

Yes, I do. Ummmmmmm, I read the PDF, and I came up with a cool Idea for a project using the Factorial block. How did you make the factorial [200] block.

Adamman715

P.S.: If you want to know my idea for that project, ask!  wink


http://gickr.com/results2/anim_be55add9-67f8-bed4-8ddd-85ad04acb8a5.gif ----------The many faces of Windows! -----------------
http://img215.imageshack.us/img215/5564/ubd2448.png

Offline

 

#227 2009-07-09 10:41:09

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Open the BYOB folder, open BYOB, click on projects(in the folder), and open functions. The factorial is there.

Last edited by The-Whiz (2009-10-05 19:15:46)

Offline

 

#228 2009-07-09 12:36:50

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

Re: ITopic: Build Your Own Blocks (BYOB)

I just discovered the weirdest glitch EVER in B.Y.O.B.. When I create a variable and name it %x I get a weird block that has a drop down menu. The options on the drop-down menu are 'record' and 're-record'. When I select 'record' it says 'Enter Scene Name.' I can't find another block that refers to a scene.


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

Offline

 

#229 2009-07-11 20:05:24

itsme213
Scratcher
Registered: 2007-07-08
Posts: 38

Re: ITopic: Build Your Own Blocks (BYOB)

DarthPickley wrote:

you need to update it for scratch 1.4 now jens! we're bound to get all sorts of new functions now, especially with the point towards (variable) and stuff... this will be so much fun!

Yes, it would be great!

Offline

 

#230 2009-07-12 02:04:18

tcb
Scratcher
Registered: 2008-03-25
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

I used it and its BRILLIANT


http://goo.gl/eCQLihttp://goo.gl/sK54shttp://goo.gl/jC0dehttp://goo.gl/yhGLQhttp://goo.gl/wqvsQ

Offline

 

#231 2009-07-12 16:28:06

nerddownthestreet
Scratcher
Registered: 2009-06-02
Posts: 13

Re: ITopic: Build Your Own Blocks (BYOB)

Can you upload projects made with this onto the site?

Offline

 

#232 2009-07-12 18:49:25

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

Re: ITopic: Build Your Own Blocks (BYOB)

Wow, so much feedback on this topic while I was on vacation, thanks, everybody! There will be a new version of BYOB soon (it's already done, I'm just deciding on which additional features to add), which is able to read existing Scratch projects and spice them up with custom blocks. It's going to have less bugs and will support some of the new 1.4 features, like the reporter-feedback-bubble and the new error-outlining/highlighting rules, plus, all arguments will also accept text input, allowing you to compose your own custom string functions. Again, thanks for all the encouraging forum posts and private e-mails. Hang on!


Jens Mönig

Offline

 

#233 2009-07-13 13:47:06

Adamman715
Scratcher
Registered: 2009-06-13
Posts: 49

Re: ITopic: Build Your Own Blocks (BYOB)

The-Whiz wrote:

Open the BYOB folder, open BYOB, click on projects(in the folder), and open functions. The factorial is there.

Thanks!!!


http://gickr.com/results2/anim_be55add9-67f8-bed4-8ddd-85ad04acb8a5.gif ----------The many faces of Windows! -----------------
http://img215.imageshack.us/img215/5564/ubd2448.png

Offline

 

#234 2009-07-13 19:42:24

itsme213
Scratcher
Registered: 2007-07-08
Posts: 38

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

There will be a new version of BYOB soon (it's already done, I'm just deciding on which additional features to add), which is able to read existing Scratch projects and spice them up with custom blocks.

Jens,

Great to hear! Do you know at this point if the new BYOB will be able to re-use BYOB projects i.e. start a new BYOB project, import existing BYOB project A and B, hook up the parts, and go? 

- Sophie

Offline

 

#235 2009-07-14 00:26:50

Scratch412
Scratcher
Registered: 2008-07-30
Posts: 41

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

So, you want to define your own procedures and functions in Scratch? Build your own blocks (BYOB  smile  )?

You might as well try this new experimental prototype I have been developing over the last weeks. You can download and read through an overview (pdf), or download the whole application (including the overview) and start playing with it right away.

This prototype lets you build your own custom blocks in Scratch using the standard Scratch blocks, as well as other blocks you defined elsewhere. You can create your own command blocks (procedures) and reporter blocks (functions), both regular ("round") and boolean ("diamond"). You can specify for each block to be atomic (run at the speed of a single block) or interleafed. Your custom blocks are defined for each sprite and can be shared among projects together with the sprite they were created for. Oh, and you can even use a block within itself (recursion).

This prototype is very, very, experimental, so be prepared to encounter lots of bugs. I'd be very interested in feedback about your experiences and insights.

Enjoy!
-Jens

Hi Jens,
I have downloaded BYOB, it is amazing indeed but it is not exactly making your own blocks, I think it is kinda more like grouping blocks?  smile


http://www.txttext.com/file-cabinet/TxttextLogoPNG.png

Offline

 

#236 2009-07-14 02:03:45

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

Re: ITopic: Build Your Own Blocks (BYOB)

itsme213 wrote:

Do you know at this point if the new BYOB will be able to re-use BYOB projects i.e. start a new BYOB project, import existing BYOB project A and B, hook up the parts, and go?

Hi Sophie,

Yes, the new BYOB version can open and import both formats. You will be able to import regular Scratch sprites/projects into existing BYOB projects, and vice versa.


Jens Mönig

Offline

 

#237 2009-07-16 10:21:10

pinochio
Scratcher
Registered: 2009-03-19
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Hallo jens,  ich bin voll verwirrt, ich habe ein PC, ich habe es gedownloaded und in scratch projects gemoved, aber jetz weiss ich nicht was zu tun, wenn du mir helfen koenntest wirde ich echt froh sein, Pinochio


Flat Out G

Offline

 

#238 2009-07-19 13:39:22

icecool44
Scratcher
Registered: 2009-04-30
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

Hello Jens

I am newbie ;
I have download your software BYOB , that's great ;
I know few things in programming.
I read the documentation.
I am particularly interested in the command block : triangle %length min %stop
It's possible for me to do the script.

But I don't know how to do the project to let Scratch perform all those fancy recursive turtle movements for fractal geomery known from Logo : triangle with small triangles inside.
Can you provide me with this project ?

Thanks a lot
Sincerely

Offline

 

#239 2009-07-19 19:21:35

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

Re: ITopic: Build Your Own Blocks (BYOB)

Hi icecool44,

It's great that you're interested in defining your own - even recursive - procedures using BYOB. When you download BYOB you'll find a subfolder with sample projects. One of these samples - I believe it's the one named 'polygons' also does the "triangle within triangles" trick (it's called a Sierpinsky fractal). If you enounter any problems or have any more questions, please don't hesitate to ask!


Jens Mönig

Offline

 

#240 2009-07-20 05:16:17

icecool44
Scratcher
Registered: 2009-04-30
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

Hello Jens

Ok , thanks ! I can see it
But it is still dificult for me  to understand how it works ; because I don't see the sprite drawing the ploygons.
But is it possible to show the value of thevariables lengh and min ?
Thanks a lot
Sincerely

Offline

 

#241 2009-07-20 06:30:32

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

Re: ITopic: Build Your Own Blocks (BYOB)

Hi icecool44,

At the top of the first script there is a block that hides the sprite. If you want to see the sprite while it is drawing the polygons, replace the "hide" block with a "show" block. Now if you press the green flag you'll see the (cat) sprite.

However, if you want to watch how it actually draws the polygons you will also need to edit the custom block called "polygon..." (right click on any instance of that block and select "edit") and unmark the checkbox called "atomic". Afterwards (accept the changes by clicking on "ok" in the block editor) you'll be able to watch the cat draw those polygons, but it will take longer, because the procedures are now being executed interleafed and not "at once".

Unfortunately you cannot turn a custom block parameter into a watcher on the stage. So, if you would like to monitor the changing values of parameters it's probably best to let the sprite "say" those parameters while it is executing the block.

Hope this helps, please keep asking if I did not make myself clear or if this doesn't work for you.


Jens Mönig

Offline

 

#242 2009-07-20 07:08:08

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

will there ever be byob 1.4 !

Last edited by dav09 (2009-07-20 07:08:28)

Offline

 

#243 2009-07-20 07:32:21

icecool44
Scratcher
Registered: 2009-04-30
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

Thanks a lot

Offline

 

#244 2009-07-20 17:08:03

icecool44
Scratcher
Registered: 2009-04-30
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

Hello Jens

To monitor the the changing values of parameters, I have let the sprite "say" the parameter length and the direction ; I have changed the color of the pen (too)  for each sides while it is executing the block.
The direction gives me interresting informations, but at this time I don't ind out the reason why the sprite stops.

It's amazing that such a script can do this  fractal.

Last edited by icecool44 (2009-07-20 18:21:11)

Offline

 

#245 2009-07-20 21:01:09

itsme213
Scratcher
Registered: 2007-07-08
Posts: 38

Re: ITopic: Build Your Own Blocks (BYOB)

Jens wrote:

Yes, the new BYOB version can open and import both formats. You will be able to import regular Scratch sprites/projects into existing BYOB projects

Wonderful, thanks!

Jens wrote:

... and vice versa.

Quite intrigued by that. Any chance the Scratch team will allow publishing/sharing of BYOB projects via their web facilities? I think BYOB opens up some new possibilities for reusable sprites.

- Sophie

Offline

 

#246 2009-07-21 03:32:58

icecool44
Scratcher
Registered: 2009-04-30
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

Hello Jens

It's me again    wink

BYOB = Build Your Own Block : OK !
Look at this picture :     roll
Need a new software
It's the second ( over 34 ) slide I have made to present Scratch in France at CETRIL : Trophée du Libre to present Scratch
CETRIL Soissons July 16 2009
There are some sentences in english for the Team Srcatch

If we, at this time, can build a block, a grey colored block, is it probably possible for you to provide us with a software that let us create blocks of other colors and other texts ?
We don't need to have a script attached to this block.
We only need to make our choice for the color ( one of the 8 colors of the 8 categories of blocks ) and for the text like on this picture !!!

It would be very fun and great. So we can use Scratch to do more , to speak Scratch.
It could be a second birth for Scrath !!!
@+
ice  cool

Offline

 

#247 2009-07-27 20:57:03

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: ITopic: Build Your Own Blocks (BYOB)

fullmoon wrote:

Doesn't "BYOB" stand for "Bring Your Own Beer"? Other than that, I am blown away! I'm supposed to be writing a Scratch presentation for school, but instead I think I'll spend the rest of the day playing with this  wink . Thank you!!!

It is 'Build Your Own Blocks' in this case.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#248 2009-07-28 02:45:46

1675
Scratcher
Registered: 2009-06-17
Posts: 21

Re: ITopic: Build Your Own Blocks (BYOB)

can you please add drop down menus (like [blocks]<touching[ [/blocks] to byob and add byob to scratch 1.5

Offline

 

#249 2009-07-29 17:16:56

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: ITopic: Build Your Own Blocks (BYOB)

1675 wrote:

can you please add drop down menus (like [blocks]<touching[ [/blocks] to byob and add byob to scratch 1.5

That would be rather complicated... I suppose that you could have them interpreted as strings. Also, I highly doubt that BYOB will show up in 1.5... remember that the target age for scratch is 7+.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#250 2009-08-01 20:16:46

soft319
Scratcher
Registered: 2008-02-19
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Cool
The only Problem that I see is that sometimes the Blocks don't work


http://bluetetrarpg.web44.net/usercard/img.php?name=soft319

Offline

 

Board footer