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

#176 2009-05-05 09:03:52

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

Re: ITopic: Build Your Own Blocks (BYOB)

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...


Jens Mönig

Offline

 

#177 2009-05-05 16:23:25

Thilo
Scratcher
Registered: 2009-03-31
Posts: 24

Re: ITopic: Build Your Own Blocks (BYOB)

That's right. I mean the ones I do NOT define in the block editor. In huge projects I've long lists of instructions setting variables to zero. Sometimes it's very confusing  smile .

Offline

 

#178 2009-05-09 17:41:44

Jimpson
Scratcher
Registered: 2009-05-05
Posts: 1

Re: ITopic: Build Your Own Blocks (BYOB)

so asome dude

Offline

 

#179 2009-05-18 17:24:08

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: ITopic: Build Your Own Blocks (BYOB)

One question: is there 1.3.1 BYOB yet?


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#180 2009-05-19 01:52:42

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

it is maxxxxxxxximum
Actually it is more than awesome

Last edited by fanofcena (2009-05-19 01:53:05)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#181 2009-05-19 02:16:33

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

Re: ITopic: Build Your Own Blocks (BYOB)

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.


Jens Mönig

Offline

 

#182 2009-05-21 20:02:50

missabiss
Scratcher
Registered: 2009-05-21
Posts: 3

Re: ITopic: Build Your Own Blocks (BYOB)

<turn cw(  )degrees>

Offline

 

#183 2009-05-21 20:04:50

missabiss
Scratcher
Registered: 2009-05-21
Posts: 3

Re: ITopic: Build Your Own Blocks (BYOB)

this is what i want

Offline

 

#184 2009-05-24 17:12:17

ScratchDude101
Scratcher
Registered: 2009-01-30
Posts: 100+

Re: ITopic: Build Your Own Blocks (BYOB)

This sounds interesting but can I access it on my Mac....it appears there is an .exe file.


Why did I even name myself "ScratchDude101?" I'm Cronos Dage.
http://cl.ly/EDZM/Screenshot%202012-02-14%20at%206.17.40%20pm.png

Offline

 

#185 2009-05-24 22:01:20

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

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.


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#186 2009-05-25 12:18:06

Markyparky
Scratcher
Registered: 2008-12-23
Posts: 40

Re: ITopic: Build Your Own Blocks (BYOB)

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)


[scratchblocks] think [Sir, you have just failed an attempt to create Scratch Blocks.] [/scratchblocks]

Offline

 

#187 2009-05-25 14:23:54

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

Re: ITopic: Build Your Own Blocks (BYOB)

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!).


Jens Mönig

Offline

 

#188 2009-05-27 13:19:02

ddakev
Scratcher
Registered: 2009-03-15
Posts: 6

Re: ITopic: Build Your Own Blocks (BYOB)

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

 

#189 2009-05-27 16:00:26

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

Re: ITopic: Build Your Own Blocks (BYOB)

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  smile


Jens Mönig

Offline

 

#190 2009-05-27 16:15:37

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Hi Jens!

Is there any chance something like BYOB gets implemented into the "real"  smile  Scratch? Or is it just meant to be an additional program, where people can experiment with recursion?


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#191 2009-05-27 17:01:43

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

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)


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#192 2009-05-27 17:42:10

fruit
Scratcher
Registered: 2009-04-24
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

A <repeat until><when I receive[

kinda thing would be nice


@savi3000 | hcsmp.com

Offline

 

#193 2009-05-27 18:47:13

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

Re: ITopic: Build Your Own Blocks (BYOB)

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.


Jens Mönig

Offline

 

#194 2009-05-29 14:43:56

ddakev
Scratcher
Registered: 2009-03-15
Posts: 6

Re: ITopic: Build Your Own Blocks (BYOB)

Hi, Jens. Thank you very much for the answer of my question. But I want to ask you one more thing. Does BYOB work with Scratch2Exe and DiskScratchr? Thanks.

Offline

 

#195 2009-06-01 06:48:04

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

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)


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#196 2009-06-01 18:07:51

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

Re: ITopic: Build Your Own Blocks (BYOB)

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!


Jens Mönig

Offline

 

#197 2009-06-02 18:31:52

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

Re: ITopic: Build Your Own Blocks (BYOB)

I made a block that told you whether one number was divisible by another. This is an amazing way of doing things on scratch!

Offline

 

#198 2009-06-02 18:35:02

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

Re: ITopic: Build Your Own Blocks (BYOB)

I tried to open the sample project but it said bad header. I have a Mac running Mac OS 10.5.6. How can I fix this problem?

Offline

 

#199 2009-06-03 01:56:04

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

Re: ITopic: Build Your Own Blocks (BYOB)

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.


Jens Mönig

Offline

 

#200 2009-06-03 04:52:20

solstice
Scratcher
Registered: 2008-09-04
Posts: 55

Re: ITopic: Build Your Own Blocks (BYOB)

Hey this is AWESOME Jens it's brilliant that you can create your own blocks it changes scratch a lot, Thanks for this Jens

Offline

 

Board footer