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

#801 2010-08-12 10:13:36

ex-boomy
Scratcher
Registered: 2010-04-03
Posts: 6

Re: ITopic: Build Your Own Blocks (BYOB)

guess wut i made a take out mp3 and kill it block lol and elmo noes where i live? block  big_smile

Offline

 

#802 2010-08-12 14:47:14

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: ITopic: Build Your Own Blocks (BYOB)

More help is needed. Because BYOB uses every uppercase and lowercase letter, how can I use custom dropdown menus? Numbers and symbols don't work.

Offline

 

#803 2010-08-22 03:31:35

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Billybob-Mario wrote:

More help is needed. Because BYOB uses every uppercase and lowercase letter, how can I use custom dropdown menus? Numbers and symbols don't work.

This has been sitting here unanswered for a long time so here's an answer:

It's not a law of nature that numbers and symbols don't work; some piece of code somewhere is making that true.  Find it, and find out why.  My guess is that there are two arrays of length 26 in the code.

When you find them, there are several things you can do, depending on how many new items you want to add.  If just one or two, you could make them arrays of length 27, including @ (the character before A) and ` (the character before a).

Alternatively, you could pick one letter (X for eXtended is traditional) to mean that the byte after the X should be used to index a third table of 26 (using XX to mean whatever X used to mean), giving you 25 more entries.

Most radical of all, replace the entire mechanism with one that reads a string instead of a single byte, and then you can have as many entries as you want!

But the most important point here is that you have to actually learn to read the code yourself!


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#804 2010-08-22 10:33:42

jackrulez
Scratcher
Registered: 2009-08-01
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

ex-boomy wrote:

guess wut i made a take out mp3 and kill it block lol and elmo noes where i live? block  big_smile

roll


Yawn, another boring text signature. I should really make something better.

Offline

 

#805 2010-08-23 05:18:49

FLUDD
Scratcher
Registered: 2010-05-24
Posts: 11

Re: ITopic: Build Your Own Blocks (BYOB)

how do byob blocks work i downloaded vesion 1.0.2 but im not sure how they work plz help

Offline

 

#806 2010-08-23 07:15:49

abrika
Scratcher
Registered: 2010-04-11
Posts: 13

Re: ITopic: Build Your Own Blocks (BYOB)

you should be allowed to upload your own blocks!


Get A Mac  wink

Offline

 

#807 2010-08-23 07:19:10

abrika
Scratcher
Registered: 2010-04-11
Posts: 13

Re: ITopic: Build Your Own Blocks (BYOB)

i made an online/offline sensor


Get A Mac  wink

Offline

 

#808 2010-08-23 07:20:48

abrika
Scratcher
Registered: 2010-04-11
Posts: 13

Re: ITopic: Build Your Own Blocks (BYOB)

<when green flag clicked>
Online/offline sencor
<stop script>


Get A Mac  wink

Offline

 

#809 2010-08-23 12:52:21

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

FLUDD wrote:

how do byob blocks work i downloaded vesion 1.0.2

Do you really mean 1.0.2 or is that a typo?  You should have 3.0.2 from here

In the distribution folder is a file called "BYOBManual.pdf" that explains in detail how to make and use custom blocks.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#810 2010-08-23 12:54:17

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

abrika wrote:

you should be allowed to upload your own blocks!

It's not allowed to upload things made with Scratch modifications such as BYOB to the Scratch web site.  We're going to have some kind of sharing feature eventually; it's on the wish list.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#811 2010-08-23 12:54:37

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

abrika wrote:

i made an online/offline sensor

what's the point, BYOB projects don't work online.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#812 2010-09-07 14:35:01

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: ITopic: Build Your Own Blocks (BYOB)

Hi developers of BYOB!
You may of noticed I am creating a website called MOD share. It will basically be just like scratch but Mod projects can be uploaded! This means anyone can share a project that has been made with their favourite mod. At the momment that is impossible, at least not an instant upload, but with MOD share it is possible to share any project made with any mod. The website is not finished yet but will be in the next month or so.  smile  Since BYOB is so popular I would love to include it so I would just like to ask for your permision to list it and allow the upload and sharing of BYOB projects. Is this okay with you?


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#813 2010-09-07 15:41:05

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Daffy22 wrote:

Hi developers of BYOB!
You may of noticed I am creating a website called MOD share. It will basically be just like scratch but Mod projects can be uploaded! This means anyone can share a project that has been made with their favourite mod. At the momment that is impossible, at least not an instant upload, but with MOD share it is possible to share any project made with any mod. The website is not finished yet but will be in the next month or so.  smile  Since BYOB is so popular I would love to include it so I would just like to ask for your permision to list it and allow the upload and sharing of BYOB projects. Is this okay with you?

Extremely clever idea!

Also, my wish list is... (as of BYOB 3.0.2)
- You should be able to create hat blocks, and make hat inputs.
- You should be able to make a block the shape of the 'stop all' block.
- Graphics of custom blocks are not as perfect as the built-in blocks.
- You should be able for multi-type inputs (input list items etc.) to set the maximun items of the multi-tipe inputs.
- You should be able to choose the color of blocks. e.g, control block, but color grey.
- You should be able to make multi-string text inputs.

Why I want to use these...
- I want to make a hat block called '(hat input) and (hat input)', and '(hat input) (hat input)'
- I want to make a 'halt all' block!  lol  Halt all?!?! What about halt script?!?!
- I want custom blocks to look exactly like built in SCRATCH blocks.
- I want to make the comment block!
- See above.
- See above.

Last edited by rdococ (2010-09-07 15:43:53)

Offline

 

#814 2010-09-08 02:43:07

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: ITopic: Build Your Own Blocks (BYOB)

rdococ wrote:

Daffy22 wrote:

Hi developers of BYOB!
You may of noticed I am creating a website called MOD share. It will basically be just like scratch but Mod projects can be uploaded! This means anyone can share a project that has been made with their favourite mod. At the momment that is impossible, at least not an instant upload, but with MOD share it is possible to share any project made with any mod. The website is not finished yet but will be in the next month or so.  smile  Since BYOB is so popular I would love to include it so I would just like to ask for your permision to list it and allow the upload and sharing of BYOB projects. Is this okay with you?

Extremely clever idea!

Also, my wish list is... (as of BYOB 3.0.2)
- You should be able to create hat blocks, and make hat inputs.
- You should be able to make a block the shape of the 'stop all' block.
- Graphics of custom blocks are not as perfect as the built-in blocks.
- You should be able for multi-type inputs (input list items etc.) to set the maximun items of the multi-tipe inputs.
- You should be able to choose the color of blocks. e.g, control block, but color grey.
- You should be able to make multi-string text inputs.

Why I want to use these...
- I want to make a hat block called '(hat input) and (hat input)', and '(hat input) (hat input)'
- I want to make a 'halt all' block!  lol  Halt all?!?! What about halt script?!?!
- I want custom blocks to look exactly like built in SCRATCH blocks.
- I want to make the comment block!
- See above.
- See above.

That all sounds very good but what I am doing is an upload site for MOD projects like BYOB!  big_smile


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#815 2010-09-11 12:00:50

awsome-nes422
Scratcher
Registered: 2010-07-12
Posts: 8

Re: ITopic: Build Your Own Blocks (BYOB)

<switch to costume[]for()secs

Offline

 

#816 2010-09-11 13:16:24

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

rdococ wrote:

- You should be able to create hat blocks, and make hat inputs.

All you really need is a hat block with a hexagonal input slot.  On the list...

- You should be able to make a block the shape of the 'stop all' block.

Why?  How would it work?  I can't think of what kind of custom block you could make other than STOP BLOCK, STOP SCRIPT, and STOP ALL.  Well, at least I can't see how to implement anything else as a custom block.

- Graphics of custom blocks are not as perfect as the built-in blocks.

I don't see how that can be true.  I do believe that the graphics of blocks with huge input expressions isn't perfect.  Low priority.

- You should be able for multi-type inputs (input list items etc.) to set the maximun items of the multi-tipe inputs.

And the minimum.  Agreed.

- You should be able to choose the color of blocks. e.g, control block, but color grey.

I disagree with this one.  It'd make it much harder to find blocks in the palette area!

- You should be able to make multi-string text inputs.

I don't understand.  How does this differ from a variadic string input?


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#817 2010-09-11 15:35:27

developdood
Scratcher
Registered: 2009-04-16
Posts: 63

Re: ITopic: Build Your Own Blocks (BYOB)

bharvey wrote:

...

- You should be able to make multi-string text inputs.

I don't understand.  How does this differ from a variadic string input?

I think it is supposed to say "multi-line".


Have a look at some of my games. I made a cool physics game called "Physics Marble Cannon" which is really cool. I let anyone remix any of my projects without permission or credit necessary.

Offline

 

#818 2010-09-11 16:29:23

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: ITopic: Build Your Own Blocks (BYOB)

How did you turn things such as ^ self into images.

Offline

 

#819 2010-09-11 22:31:04

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Billybob-Mario wrote:

How did you turn things such as ^ self into images.

Eh?


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#820 2010-09-11 22:40:51

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

bharvey wrote:

Billybob-Mario wrote:

How did you turn things such as ^ self into images.

Eh?

I think he might be talking about Elements.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#821 2010-09-11 22:50:51

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

ScratchReallyROCKS wrote:

I think he might be talking about Elements.

Oh!  Of course, stupid of me.

That's Jens's pride and joy!  He really loves the idea of drag-and-drop iconic programming at all levels of abstraction.

Short answer:  It's really no different from Scratch itself.  You have draggable icons (the same idea in both, although different shapes) each of which represents a little chunk of code.  It's just that in Scratch the chunks are bigger, and in Elements each chunk corresponds to one primitive Smalltalk operation.

Saying it another way, Scratch is (sort of) drag-and-drop Logo; Elements is drag-and-drop Smalltalk.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#822 2010-09-12 09:57:02

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: ITopic: Build Your Own Blocks (BYOB)

ScratchReallyROCKS wrote:

bharvey wrote:

Billybob-Mario wrote:

How did you turn things such as ^ self into images.

Eh?

I think he might be talking about Elements.

I'm not talking about Elements. I made a block that does ^ self in normal BYOB for Slash and it reports how the sprite looks including rotation, graphic effects, ect. How did you do that?

Offline

 

#823 2010-09-12 12:34:45

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

Billybob-Mario wrote:

I made a block that does ^ self in normal BYOB for Slash and it reports how the sprite looks including rotation, graphic effects, ect. How did you do that?

Umm, it sounds as if you did that.  smile  If you're asking how the sprite knows what it looks like, it's a smalltalk object that, like all objects, remembers its own state.  But maybe I'm still misunderstanding the question?


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#824 2010-09-12 13:35:47

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: ITopic: Build Your Own Blocks (BYOB)

bharvey wrote:

Billybob-Mario wrote:

I made a block that does ^ self in normal BYOB for Slash and it reports how the sprite looks including rotation, graphic effects, ect. How did you do that?

Umm, it sounds as if you did that.  smile  If you're asking how the sprite knows what it looks like, it's a smalltalk object that, like all objects, remembers its own state.  But maybe I'm still misunderstanding the question?

How does the block get the image to report?

Offline

 

#825 2010-09-12 13:41:02

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: ITopic: Build Your Own Blocks (BYOB)

You mean imageForm?
Or do you want to just draw it on a canvas?
Or do you want to get its current costume form?


nXIII

Offline

 

Board footer