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

#1 2010-04-25 10:55:59

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Welcome to Learn To Build Your Own Blocks, we will look at how to make three different blocks today to get you started in BYOB. For this tutorial, you need to download BYOB 2.99 here, byob.berkeley.edu

Block 1: Previous Costume
There's next costume, and then for you to create, there is previous costume.

1. Go to Variables and click "Make a Block."

2. You see the object groups in the screen that pops up, select "Looks," then, where it asks what type of block, "command." At the very bottom of the screen, it has the blank line, this is where you block name goes, type, "previous costume." Press OK.

3. Now your in the main creation screen. There should be a purple previous costume block, within a hat block. Without exiting out of your screen, go to the Looks section of the blocks palette. Drag a "switch to costume" block into you window and connect it to the hat block.

4. Now for making it go to the previous costume. Go to Operators in the block palette. Take a "()-()" block out, and put it in the "switch to costume" block. In the "()-() block, drag a "costume#" block into the first hole, and type 1 in the second.

5. Your finished and your script should look like this:

http://img263.imageshack.us/img263/9339/previouscostume.gif

6. Press OK

Block 2: animate costumes [] through []

1. Go to variables, click "make a block."

2. In this screen, select Looks again. Select command type block. Type "animate costumes through," in the naming space. Press OK>

3. Now you're in the main screen. To create the areas where you type numbers, you have to put variables. Notice how the addition signs appear when you go across the block? Click one of these and it asks you to name the variable. Between "costumes," and "through," make a variable called costume1. After "through," make a variable named costume.

4. Go to the Looks blocks, and insert a "switch to costume," block in your scripts. Where it says the costume name in that block, duplicate a costume1 variable and insert it there. Then put a "wait 1 sec," block after that. Now take a repeat until block, that says "repeat until costume# = costume." In the repeat loop, put "next costume, wait 1 sec."

5. Now your finished and the scripts should look like this:

http://img689.imageshack.us/img689/6563/animatescripts.gif

Helpful User Comments:

Lucario621 wrote:

I have a suggestion for block 2:

http://i993.photobucket.com/albums/af54/lucario621/Newblocks.png

This way, you can customize the speed  smile

Plus, it was slightly optimized.

meew0 wrote:

A block idea:

http://imgur.com/CnjUm.gif

Jens wrote:

Hi meew0, cool! You just made you first E-shaped block with a new control structure that did not exist before. Just like Scratch has a "forever if" block you have invented your own "forever if else" block. I'm impressed!

I wrote:

meew0 wrote:

A block idea:

http://imgur.com/CnjUm.gif

Hey meew0, a cool feature about Scratch is remixing, and it's the same for BYOB apparently!

I've made you block easier for me to understand:

http://img72.imageshack.us/img72/2475/0aforverifelseforever.gif

Last edited by soupoftomato (2010-05-01 21:51:20)


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#2 2010-04-25 16:36:46

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Bump, I finished it.


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#3 2010-04-25 17:09:13

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

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Thank you, soupoftomato, for sharing this excellent introduction to BYOB!


Jens Mönig

Offline

 

#4 2010-04-25 17:12:31

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

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Hmmm, I didn't know 2.99 was released already  yikes  *downloads*

Nice introduction, although I already knew how to do this  big_smile

Last edited by technoguyx (2010-04-25 17:12:52)


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

Offline

 

#5 2010-04-25 17:13:20

adriangl
Scratcher
Registered: 2007-07-02
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

2.99? Downloading right away.....


Scratchin' since 2007

Offline

 

#6 2010-04-25 17:35:57

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

I have a suggestion for block 2:

http://i993.photobucket.com/albums/af54/lucario621/Newblocks.png

This way, you can customize the speed  smile

Plus, it was slightly optimized.

Last edited by Lucario621 (2010-04-25 17:36:29)


http://i.imgur.com/WBkM2QQ.png

Offline

 

#7 2010-04-25 17:44:44

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Lucario621 wrote:

I have a suggestion for block 2:

http://i993.photobucket.com/albums/af54 … blocks.png

This way, you can customize the speed  smile

Plus, it was slightly optimized.

I'll make a viewers comments section for useful things like that.


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#8 2010-04-25 17:51:12

iCode-747
Scratcher
Registered: 2009-11-21
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Thanks so much! I really needed something like this.


-End Transmission-

Offline

 

#9 2010-04-25 17:52:08

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

iCode-747 wrote:

Thanks so much! I really needed something like this.

Glad you like it!


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#10 2010-04-25 18:44:47

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

soupoftomato wrote:

Lucario621 wrote:

I have a suggestion for block 2:

http://i993.photobucket.com/albums/af54 … blocks.png

This way, you can customize the speed  smile

Plus, it was slightly optimized.

I'll make a viewers comments section for useful things like that.

Ok! Cool!  smile


http://i.imgur.com/WBkM2QQ.png

Offline

 

#11 2010-04-25 22:34:38

Dazachi
Retired Community Moderator
Registered: 2009-09-12
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Thank you. Now I kinda understand BYOB now!


Dazachi, Retired Community Moderator
May also know me as OJACheung.

Offline

 

#12 2010-04-26 07:23:43

rocket101
Scratcher
Registered: 2009-08-21
Posts: 500+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Thanks for this!

Offline

 

#13 2010-04-26 08:00:55

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Thanks everyone for the kind comments!!! Glad I could help you guys.  smile


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#14 2010-04-26 08:23:06

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

I found an error...

You put switch to costume costume number - -1.


http://i46.tinypic.com/dw7zft.png

Offline

 

#15 2010-04-26 09:57:02

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

A block idea:

http://imgur.com/CnjUm.gif


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#16 2010-04-26 11:35:44

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

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Hi meew0, cool! You just made you first E-shaped block with a new control structure that did not exist before. Just like Scratch has a "forever if" block you have invented your own "forever if else" block. I'm impressed!


Jens Mönig

Offline

 

#17 2010-04-26 11:41:42

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Thanks  smile


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#18 2010-04-26 15:08:47

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

meew0 wrote:

A block idea:

http://imgur.com/CnjUm.gif

Awesome!


http://i.imgur.com/WBkM2QQ.png

Offline

 

#19 2010-04-26 15:11:19

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Thanks  smile  Oh yeah, the first time that everyone isn't ignoring me!


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#20 2010-04-26 15:27:40

Kingdaro
Scratcher
Registered: 2008-06-08
Posts: 100+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

http://img411.imageshack.us/img411/6962/epicbyobwin.gif

Offline

 

#21 2010-04-26 16:04:45

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

*agrees with the guy above me*

This new version of BYOB is a lot easier to handel than the last one where you had to type in all the different variables in the name of it.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#22 2010-04-26 16:14:08

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Thanks all, I'm not at the right computer right now, but I am going to add a tutorial for how to make a {inverse of () ) block.

And meew0 and Jens, I'll add those *super helpful* comments to the Helpful User Comments section.

Last edited by soupoftomato (2010-04-26 16:14:22)


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#23 2010-04-26 18:04:01

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

Added inverse block tutorial.


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#24 2010-04-26 18:51:56

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

BTW, it's -1 instead of 1 for the previous costume.  wink


Hai.

Offline

 

#25 2010-04-26 19:02:56

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: Learn To Build Your Own Blocks - A Beginners Guide To BYOB

fg123 wrote:

BTW, it's -1 instead of 1 for the previous costume.  wink

But it's already subtracting. - -1 is just like +1.


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

Board footer