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

#1 2012-05-25 21:03:46

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Everything About Forum Scratch Bricks

Hello! I decided to make a page talking about all the scratch bricks and how to make them. I find a lot of people are struggling with it! For your information, all Scratch blocks online will look boxey. First of all, type [scratchblocks-] (remove the -) to make the forum know that you are typing scratch blocks. Always place a block on another line! (press enter before you try and type another brick) To insert a stack block ( the rectangular ones with TWO bumps ), you simply type the text you see. For the white spaces you see in the brick, or the numbers or letters you can change, you either place brackets () or a box [] in it. It depends on the shape. ( It really does not matter if you use () or [], but the () one makes the background white and the [] will make the background color the same as the brick's color.) For example, if you want to add a wait brick to forum, type this:

Code:

[scratchblocks]
wait (1) secs
[/scratchblocks]

Preview:

wait (1) secs
If you look closely, you see a ending command ( [/scratchblock]). This is to make the forum know that you are ending making bricks. If you want to change a set variable brick, do this:

Code:

[scratchblocks]
set [variablename v] to [1]
[/scratchblocks]

Preview:

set [variablename v] to [1]
The v beside "variablename" is the little arrow in Scratch that is used to scroll down a list of variables. Remember to put a space between the variable name and the v. Some bricks, like the turn brick, has a picture in it. To type the clockwise and counterclockwise, we replace the picture with cw or ccw. The counterclockwise brick is ccw and the clockwise is cw.

Code:

 
[scratchblocks]
turn cw (15) degrees
[/scratchblocks]

Produces:

turn cw (15) degrees
and

Code:

 
[scratchblocks]
turn ccw (15) degrees
[/scratchblocks]

Produces:

turn ccw (15) degrees
. Some bricks only have one bump on it. They are either ending bricks ( Stop script and Stop all ) or "Hats", the bricks that have a curved top. To make a ending brick, copy the text on it.

Code:

[scratchblocks]
stop all
[/scratchblocks]

Makes:

stop all
. Making hats are also like making ending blocks, but the start green flag hat has a picture. Replace Green Flag Picture with gf.

Code:

[scratchblocks]
when gf clicked
[/scratchblocks]

when gf clicked
. The other hats are easy to make. Some hats, however, has a block for selecting variables. Remember to place a "v" in them.

Code:

[scratchblocks]
when [space v] key pressed
[/scratchblocks]

when [space v] key pressed
. Now for the blocks called "c-shaped"! These bricks are the blocks like "forever, repeat, if..." To make them, you do the same for all the bricks, copy the text, make some variable boxes. After that, place bricks that you want in the "c-shaped". To make sure that the forum knows that you are done adding things into the brick, add an "end" command.

Code:

[scratchblocks]
repeat until <(variable) = [2]> 
say [Hello world!] for [1] secs
end
[/scratchblocks]

repeat until <(variable) = [2]> 
say [Hello world!] for [1] secs
end
. The <> is there because if you place the [] = [] block ( all bricks that are diamond shape like [] < [], <> and <> bricks are called a Boolean brick) into the repeat until block, it looks like a diamond shape. The variable is a () shape, so you see variable in a () shape. The number 2 is in the second box on the Boolean brick, and if you place a number into a boolean, the shape ofthe box stays the same, so you place the number (in this case, 2) into a [] box. The if..else block has two "c-shapes", to make it, you do the same for a regular "c-shaped' block. Don't forget to add the end command.

Code:

[scratchblocks]
if < (variable) > [1] >
say [Win!] for (2) secs
else 
say [Lose.] for (2) secs
end
[/scratchblocks]

if < (variable) > [1] >
say [Win!] for (2) secs
else 
say [Lose.] for (2) secs
end
For multiple "c-shaped" bricks, do the same thing.

Code:

[scratchblocks]
when gf clicked
repeat until < (variable) = [2] >
say [Hello world!] for (2) secs
set [variable v] to (pick random (1) to (2))
if < (variable) = [1] >
stop script
end 
say [Hi!] for (2) secs
end
[/scratchblocks]

Creates:

when gf clicked
repeat until < (variable) = [2] >
say [Hello world!] for (2) secs
set [variable v] to (pick random (1) to (2))
if < (variable) = [1] >
stop script
end 
say [Hi!] for (2) secs
end
To add color bricks, you will need to find the hex code of the color(s). Hex codes can be found here: Hex Code Link. Once you know the hex code, place it into the brick!

Code:

[scratchblocks]
<color [#1ADB41] touching [#FF9100]?>
[/scratchblocks]

<color [#1ADB41] is touching [#FF9100]?>
Don't forget to add the number symbol (#) before you put in the hex code. To comment on bricks, use the // command.

Code:

[scratchblocks]
move (1) steps // Is it too slow?
[/scratchblocks]

move (1) steps // Is it too slow?
If you still do not know how to make a variable block at this point, it is very easy to make.

Code:

[scratchblocks]
(variable)
[/scratchblocks]

(variable)
. To add a white text block, do this:

Code:

[scratchblocks]
[Hi!]
[/scratchblocks]

[Hi!]
If you made an error, the forum will correct you by making the block red. For example:

Code:

[scratchblocks]
wait (1) seconds
[/scratchblocks]

wait (1) seconds
. Did you find what was wrong? Yes! Replace "seconds" with "secs". Fixed!
Thank you soo much for reading this! If there is something you want to know about Scratch Blocks, or if I made a mistake, please comment!

Last edited by KrIsMa (2012-05-27 13:42:49)


http://blocks.scratchr.org/API.php?user=KrIsMa&amp;action=onlineStatus&amp;online=http://i49.tinypic.com/2pzic0m.png&amp;offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

#2 2012-05-26 09:55:40

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Everything About Forum Scratch Bricks

Thanks!  This will really help new scratchers.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#3 2012-05-26 10:07:02

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Everything About Forum Scratch Bricks

Nice tutorial!


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#4 2012-05-26 10:11:37

daniel_j
Scratcher
Registered: 2012-05-22
Posts: 100+

Re: Everything About Forum Scratch Bricks

Huh, that makes sense, i really like how you have to use the hex code, mainly because I know HTML script lol. xD This is really helpful to me! I haven't really been able to find much help for this, so thanks!

when gf clicked
think [Thanks!] for (2) secs
repeat until < (Webiste) = [Closed] >
end 


http://i50.tinypic.com/2dhgnsx.jpg

Offline

 

#5 2012-05-26 12:08:46

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Re: Everything About Forum Scratch Bricks

daniel_j wrote:

Huh, that makes sense, i really like how you have to use the hex code, mainly because I know HTML script lol. xD This is really helpful to me! I haven't really been able to find much help for this, so thanks!

when gf clicked
think [Thanks!] for (2) secs
repeat until < (Webiste) = [Closed] >
end 

Since this is a help with scripts section, the scratch blocks you posted does not work the way you want it. C blocks only repeat what is in them, not outside  smile  so it would look like this:

When gf clicked
Repeat until < (website) = [closed] >
Think [Thanks!] for (2) secs
End 
And you are very welcome!

Last edited by KrIsMa (2012-05-26 12:11:26)


http://blocks.scratchr.org/API.php?user=KrIsMa&amp;action=onlineStatus&amp;online=http://i49.tinypic.com/2pzic0m.png&amp;offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

#6 2012-05-26 13:06:05

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: Everything About Forum Scratch Bricks

This is a nice tutorial! New scratchers will find it really helpful!  smile


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&amp;display=small

Offline

 

#7 2012-05-26 13:34:42

sanjayraj
Scratcher
Registered: 2012-03-25
Posts: 500+

Re: Everything About Forum Scratch Bricks

I agree with SciTecCf


http://i46.tinypic.com/23sw40j.png

Offline

 

#8 2012-05-27 04:45:11

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: Everything About Forum Scratch Bricks

Very interesting guide.  big_smile


http://trinary.tk/images/signature_.php

Offline

 

#9 2012-06-06 11:46:23

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Re: Everything About Forum Scratch Bricks

thank you everyone for the nice comments!

Last edited by KrIsMa (2012-06-06 11:47:40)


http://blocks.scratchr.org/API.php?user=KrIsMa&amp;action=onlineStatus&amp;online=http://i49.tinypic.com/2pzic0m.png&amp;offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

#10 2012-06-07 19:01:38

Randomness_Player
Scratcher
Registered: 2012-06-06
Posts: 20

Re: Everything About Forum Scratch Bricks

[Thanks this is very helpful]

Offline

 

#11 2012-06-19 00:05:54

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Re: Everything About Forum Scratch Bricks

You are very welcome. Have fun on Scratch forums!

Last edited by KrIsMa (2012-06-19 00:06:15)


http://blocks.scratchr.org/API.php?user=KrIsMa&amp;action=onlineStatus&amp;online=http://i49.tinypic.com/2pzic0m.png&amp;offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

#12 2013-03-21 09:07:22

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Everything About Forum Scratch Bricks

It looks like someone re-opened your topic (i noticed it in reports, and clicked over to do that, but someone seems to have gotten to it first). Now you can get the BBCode you wanted.

I have a feeling it was closed due to inactivity.

Offline

 

#13 2013-04-05 17:27:01

colbylock
New Scratcher
Registered: 2013-04-05
Posts: 1

Re: Everything About Forum Scratch Bricks

Cool!

Offline

 

#14 2013-04-06 13:01:46

Squirrelflight2
Scratcher
Registered: 2013-03-17
Posts: 42

Re: Everything About Forum Scratch Bricks

Thanks alot!!! XD

Offline

 

#15 2013-04-06 19:34:12

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Re: Everything About Forum Scratch Bricks

Squirrelflight2 wrote:

Thanks alot!!! XD

You are very welcome!!!
Glad to help!


http://blocks.scratchr.org/API.php?user=KrIsMa&amp;action=onlineStatus&amp;online=http://i49.tinypic.com/2pzic0m.png&amp;offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

#16 2013-04-06 19:37:37

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Re: Everything About Forum Scratch Bricks

colbylock wrote:

Cool!

Oh hey colbyblox10!

Thank you!


http://blocks.scratchr.org/API.php?user=KrIsMa&amp;action=onlineStatus&amp;online=http://i49.tinypic.com/2pzic0m.png&amp;offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

Board footer