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!
Offline
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.
Offline
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
Can you upload projects made with this onto the site?
Offline
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!
Offline
The-Whiz wrote:
Open the BYOB folder, open BYOB, click on projects(in the folder), and open functions. The factorial is there.
Thanks!!!
Offline
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
Jens wrote:
So, you want to define your own procedures and functions in Scratch? Build your own blocks (BYOB )?
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?
Offline
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.
Offline
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
Offline
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
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!
Offline
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
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.
Offline
will there ever be byob 1.4 !
Last edited by dav09 (2009-07-20 07:08:28)
Offline
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
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
Hello Jens
It's me again
BYOB = Build Your Own Block : OK !
Look at this picture :
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
Offline
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 . Thank you!!!
It is 'Build Your Own Blocks' in this case.
Offline
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+.
Offline