In BYOB the block-internal variables (the ones you define in the block editor) are always initialized to zero (unless they are parameters, in which case they assume the value passed on to them) and don't keep their state. But I'm afraid that's not what your asking for...
Offline
One question: is there 1.3.1 BYOB yet?
Offline
Thanks! I'm glad you guys like BYOB and grateful about all the feedback. The current version of BYOB is based on Scratch 1.3, so, apart from all the BYOB-bugs, there are still some "old" Scratch bugs in it.
Offline
This sounds interesting but can I access it on my Mac....it appears there is an .exe file.
Offline
ScratchDude101 wrote:
This sounds interesting but can I access it on my Mac....it appears there is an .exe file.
Get a Mac .app file, and drag byob.image to it.
Offline
Hold on. how did you make this???? It's so cool! TELL ME! Please! I wanna know!
Last edited by Markyparky (2009-05-25 12:20:32)
Offline
Hi Markyparky, I'm glad you like BYOB, thanks for giving it a try! How did I do it? I took the Scratch Source Code and started out with a mock-up of an editable block. Then I dug into Scratch's execution engine code and kept debugging the mock-up until it actually started working. The hardest part by far was getting recursion to work correctly (this nearly twisted my mind, lol!).
Offline
Hey! I was wondering... In the first project you show in the overview about the fractal geometry with triangles, how exactly do you call the command triangle back. I mean what do you write in the places for variables.
Last edited by ddakev (2009-05-27 13:20:25)
Offline
Hi ddakev, thanks for your interest in BYOB! Recursion in BYOB works this way: As soon as you define a block by entering a block spec a "template" is created in the pallette. You can then drag an instance of the template (your custom block) into the dialog box in which you define the script for the block, and pass along any variables or parameters. I've included some demo projects in the BYOB download which you can play with so to hopefully get the idea
Offline
Yeah, that would be awesome. Combined with the ability to call the functions of other sprites or "broadcast to sprite", that would really open some doors.
Last edited by fullmoon (2009-05-27 17:01:57)
Offline
Hi JSO, and all,
BYOB - and some other "wild idea prototypes" like Elements - are just my private experiments and not part of my 'real' contributions to Scratch (which are much less exciting). I'm very happy that so many people like BYOB and use it,and - as I stated elsewhere - I'm definitely planning to port BYOB to the Scratch 1.4 Source Code once that gets published, and maybe refine it some more. As far as I know, BYOB's features (procedures, paramater-passing, recursion, concurrency control) are currently not speed-tracked for inclusion in the official Scratch release.
Offline
ddakev - I recommend not to use discScratchr at the moment - it is outdated and I believe only works with 1.3 projects or older. discScratchr and Scratch2Exe actually just run Scratch 1.3(.1) with a little modification that makes it open in full screen and closes itself when you exit presentation mode. So, since BYOB is a "different" version of scratch, it will not work.
Jens - Thanks for the reply! It's just that "BYOB" (or functions) is a mayor thing Scratch is still lacking in order to equal to other programming languages, as for functionality. With the new String manipulation blocks of Scratch 1.4, BYOB could even serve so many more possibilities! Like a "Play []" block that acts like an old Basic PLAY "" command... Wow .
Joren (JSO)
Offline
Hi ddakev. Scatch2Exe currently works will all versions of Scratch up to 1.3.1 (the current version), but not with BYOB. However, BYOB does have its own version of Scratch2Exe already integrated, it's called "compile" and you'll find it in the Extras Menu. Enjoy!
Offline
Hi The-Whiz. It's great that you're experimenting with BYOB and having fun with it. I just tried the sample projects and they work fine for me. Just remember that you need to open them - manually - in BYOB, not in Scratch (double clicking these samples will probably start Scratch instead of BYOB). You can open a sample in BYOB either through the open-dialog or by dragging a project in to the BYOB window.
Offline