Discuss Scratch
- Discussion Forums
- » New Scratchers
- » A guide to [Scratchblocks] and other BBCode help
- pac2005
- Scratcher
39 posts
A guide to [Scratchblocks] and other BBCode help
. . . Great guide techno-CAT!
if <mouse down?::operators> then::operators
say [Hello!] for (2) secs::operators
end
- ultimateboy144
- Scratcher
100+ posts
A guide to [Scratchblocks] and other BBCode help
making an extended C Block uses the following examples
1.
thats 1
2.
those are the two examples. If you understand the code, then try it for your self (if you want to)
1.
if <> then
else
or otherwise :: control celse
end
if <> then
else
or otherwise :: control celse
end
thats 1
2.
repeat ()
then repeat () :: control celse
end
repeat ()
then repeat () :: control celse
end
those are the two examples. If you understand the code, then try it for your self (if you want to)
Last edited by ultimateboy144 (April 8, 2015 18:00:14)
Us, as a community, can{
imagine :: looks
program :: operators
share :: sensing} for all eternity! :: control loop cap
and so can you. :: operators
Fake Detector
- Tropic
- Scratcher
1000+ posts
A guide to [Scratchblocks] and other BBCode help
In some programming languages that would be: making an extended C Block uses the following example
1.if <> then
else
or otherwise :: control celse
endif <> then
else
or otherwise :: control celse
end
if <> then
else if <> :: control celse
else
end
[scratchblocks]
if <> then
else if <> :: control celse
else
end
[/scratchblocks]
if() { } else if() { } else { }
- ultimateboy144
- Scratcher
100+ posts
A guide to [Scratchblocks] and other BBCode help
oh realy?In some programming languages that would be: making an extended C Block uses the following example
1.if <> then
else
or otherwise :: control celse
endif <> then
else
or otherwise :: control celse
endif <> then
else if <> :: control celse
else
endIn JavaScript I think it's like this:[scratchblocks]
if <> then
else if <> :: control celse
else
end
[/scratchblocks]if() { } else if() { } else { }
Us, as a community, can{
imagine :: looks
program :: operators
share :: sensing} for all eternity! :: control loop cap
and so can you. :: operators
Fake Detector
- minecraft74
- Scratcher
16 posts
A guide to [Scratchblocks] and other BBCode help
Scratch variable:
(OMG_time)
when green flag clickedOMG!!
if <[omg] = [true ]> then
say [omg!! scratch in commets] for (OMG_time) secs
set [OMG_time v] to [0 ]
end
stop [all v]
when green flag clicked
say [bleep!!!]
move (OMG_time) steps
when green flag clickedWell, I'm going to play some-
say [No minecraft!?] for (2) secs
set [Minecraft active? v] to [Yes]
say [Yay!] for (2) secs
if <(Minecraft active?) = [Yes]> then
Play minecraft until [9:00 PM]
end
End signature
Play minecraft forever
- Blue-Monkey
- Scratcher
100+ posts
A guide to [Scratchblocks] and other BBCode help
Nice guide
Test:
Test:
block :: grey
Blue-Monkey
Be a business owner!
Are you sure you know all the tricks of using Google?
;
Click here to find out how to bring back the Semicolon Glitch
- WarpSpeed
- Scratcher
22 posts
A guide to [Scratchblocks] and other BBCode help
Thanks for the guide. Very helpful.
- JeeJeeHogMole724
- Scratcher
52 posts
A guide to [Scratchblocks] and other BBCode help
when green flag clicked
forever
if <happy>
repeat ([2^ v] of (53)
say [We love scratch!] for (2) secs
end
end
A kumquat ate my signature, but…
ANTI KUMQUAT LASER!
——-…..——-…..——>–…..——>..——>–…..—>–…..——>..——…..——>..——>–…..—>–…..——>..—-..——-…..——>–…..——>..——>–…..—>–…..——>..——…..——>..—–..——-…..——>–…..——>..——>–…..—>–…..——>..——…..——>..—–.—–..——-…..——>–…..——>..——>–…..—>–>
Dang, you got me… not!
- InsaniacGuru77
- Scratcher
78 posts
A guide to [Scratchblocks] and other BBCode help
((<[MY QUESTION:] = [How do you change the color of a block in BBcode formatting?]>) in this (forum))
Btw, you can even do math that makes no sense at all. For example:
((1) + (2) = (0)) (<[5] = [8]> / (0)) ((3) @ (2)) (pick random (1) / (10)) ((say [hi] for (2) secs) + <key [enter] pressed?>((1) + (2) = (0)) (< = > / (0)) ((3) @ (2)) (pick random (1) / (10)) ((say for (2) secs) + <key pressed?>
Last edited by InsaniacGuru77 (July 24, 2015 19:17:59)
When [this signature] receives a [view] :: events hat
ask [What is life in a perfect world?] and wait
set (answer) to [Gaming, coding, memes, band music, and SODAAA!!!!!!!!! ]
reply [You are correct.] and do not wait to [agree] :: sensing stack
- Ive-the-men
- Scratcher
14 posts
A guide to [Scratchblocks] and other BBCode help
How do you create discussions?
Repeat until (i get an answer)
Ask [How do you create discussions?]
- Owengren
- Scratcher
100+ posts
A guide to [Scratchblocks] and other BBCode help
when green flag clickedRemember,
say [Hello!] for (2) secs
when green flag clicked
forever
play sound [forever love, program, share v]until done
end
forever
love::looks
program::sensing
share::sound
end
Go check out Cosmic Chasers - my new 2.5D game!
https://scratch.mit.edu/projects/414358692/
Cosmic Chasers might move to a new account. Here's why:
https://scratch.mit.edu/projects/415189579/
- snaps1
- Scratcher
66 posts
A guide to [Scratchblocks] and other BBCode help
Hope It Works Try this :when gf clicked :: operators hat
if :: sound cstart
this {block :: sensing ring} is a [ring v] :: custom-arg cstart
these :: motion cstart
amazing {skills :: pen ring} :: extension ring
are what I call ring partys :: motion cend ring
< will :: custom reporter> :: custom-arg cring
teach [scratchers v] :: variables ring
how to mess this :: sensing stack
because :: custom-arg celse
i love rings! :: sensing ring
Thats A Ring Party! Rings Rings Rings!
How To Mess
quotes!Just Change This:
Into This:<–Go's Here——–> (color=red) R (/color) (color=orange) A (/color) (color=yellow) I (/color) (color=green) N (/color) (color=blue) B (/color) (color=indigo) O (/color) (color=purple) W (/color)]
Last edited by snaps1 (Sept. 6, 2015 21:02:18)
Just Rolling Around!
( [roll v] and [laugh v]);
- InsaniacGuru77
- Scratcher
78 posts
A guide to [Scratchblocks] and other BBCode help
Yeah, how DO you do that?Hope It Wprks You can aslo do this:To show the square brackets. It looks like:[[]scratchblocks]
[[]/scratchblocks]
[scratchblocks]
[/scratchblocks]
And this guide isn't really about tricks, I'd say learning how to do this:when gf clicked :: operators hat
if :: sound cstart
this {block :: sensing ring} is a [block v] :: custom-arg cstart
these :: motion cstart
amazing {skills :: pen hat} :: extension stack
are what I call tricks :: motion cend cap
and <you should :: custom reporter> :: custom-arg cring
teach [people v] :: variables stack
how to do this :: sensing stack
because :: custom-arg celse
only these {turn cw (20) degrees :: motion ring} :: grey stack
are true tricks :: motion cend
end
is all that qualifies as [scratchblocks] “tricks”, the rest is self explanatory.
if <> then
else
or otherwise :: control celse
end
Last edited by InsaniacGuru77 (Sept. 6, 2015 20:48:33)
When [this signature] receives a [view] :: events hat
ask [What is life in a perfect world?] and wait
set (answer) to [Gaming, coding, memes, band music, and SODAAA!!!!!!!!! ]
reply [You are correct.] and do not wait to [agree] :: sensing stack
- InsaniacGuru77
- Scratcher
78 posts
A guide to [Scratchblocks] and other BBCode help
Oh, wait, I'm exploring you're code right now. Yep, I learned it!
when gf clicked :: variables hat
if :: variables cstart
this {weirdness :: operators ring} is a [block v] :: custom-arg cstart
these :: motion cstart
amazing {skills :: custom-arg cstart} :: extension stack
are what I call tricks :: motion cend cap
and <you should :: custom reporter> :: custom-arg cring
teach {people :: events ring} :: variables stack
how to do this :: sensing stack
because :: custom-arg celse
only these {turn cw ({weirdness :: operators ring}) degrees :: motion ring} :: sensing stack
are true tricks :: motion cend
end
Last edited by InsaniacGuru77 (Sept. 9, 2015 00:57:08)
When [this signature] receives a [view] :: events hat
ask [What is life in a perfect world?] and wait
set (answer) to [Gaming, coding, memes, band music, and SODAAA!!!!!!!!! ]
reply [You are correct.] and do not wait to [agree] :: sensing stack
- snaps1
- Scratcher
66 posts
A guide to [Scratchblocks] and other BBCode help
Just Rolling Around!
( [roll v] and [laugh v]);
- InsaniacGuru77
- Scratcher
78 posts
A guide to [Scratchblocks] and other BBCode help
The BBCode colors:
COLORS :: grey hat
pink :: stack
red :: list stack
orange :: variables stack
brown :: events stack
yellow :: control stack
green :: operators stack
teal :: pen stack
cyan :: sensing stack
blue :: motion stack
indigo :: custom-arg stack
purple :: looks stack
magenta :: sound stack
Last edited by InsaniacGuru77 (Sept. 6, 2015 21:17:58)
When [this signature] receives a [view] :: events hat
ask [What is life in a perfect world?] and wait
set (answer) to [Gaming, coding, memes, band music, and SODAAA!!!!!!!!! ]
reply [You are correct.] and do not wait to [agree] :: sensing stack
- Tropic
- Scratcher
1000+ posts
A guide to [Scratchblocks] and other BBCode help
Someone else has already made a topic that explains how you do that Oh, wait, I'm exploring you're code right now. Yep, I learned it!when gf clicked :: variables hat
if :: variables cstart
this {weirdness :: operators ring} is a [block v] :: custom-arg cstart
these :: motion cstart
amazing {skills :: custom-arg cstart} :: extension stack
are what I call tricks :: motion cend cap
and <you should :: custom reporter> :: custom-arg cring
teach {people :: events ring} :: variables stack
how to do this :: sensing stack
because :: custom-arg celse
only these {turn cw ({weirdness :: operators ring}) degrees :: motion ring} :: sensing stack
are true tricks :: motion cend
end
- InsaniacGuru77
- Scratcher
78 posts
A guide to [Scratchblocks] and other BBCode help
Well lol I learned without itSomeone else has already made a topic that explains how you do that Oh, wait, I'm exploring you're code right now. Yep, I learned it!when gf clicked :: variables hat
if :: variables cstart
this {weirdness :: operators ring} is a [block v] :: custom-arg cstart
these :: motion cstart
amazing {skills :: custom-arg cstart} :: extension stack
are what I call tricks :: motion cend cap
and <you should :: custom reporter> :: custom-arg cring
teach {people :: events ring} :: variables stack
how to do this :: sensing stack
because :: custom-arg celse
only these {turn cw ({weirdness :: operators ring}) degrees :: motion ring} :: sensing stack
are true tricks :: motion cend
end
When [this signature] receives a [view] :: events hat
ask [What is life in a perfect world?] and wait
set (answer) to [Gaming, coding, memes, band music, and SODAAA!!!!!!!!! ]
reply [You are correct.] and do not wait to [agree] :: sensing stack
- excelguru
- Scratcher
1000+ posts
A guide to [Scratchblocks] and other BBCode help
Blocks new to BYOB 3.0:
Blocks new to BYOB 3.1:
Blocks new to snap 4.0
Some of the blocks seem meaningless, but that is because of BYOB's expanded data types.
run {:: grey cap} ► :: control // runs the blocks in it
launch {:: grey cap} ► :: control // runs the blocks in it simultaneously to the script
call {:: grey cap} ► :: control reporter // allows the user to call a variable that is a reporter
report [] :: control cap // for custom reporters and Booleans, it tells what to report
stop block :: control cap // stops a custom block without reporting anything
debug :: control // an experimental block
debug () :: control reporter // ''
true :: operators boolean // reports true
false :: operators boolean // reports false
ascii code of [] :: operators reporter // reports the ascii code of a character
ascii () as letter :: operators reporter // reports the character for an ascii code
is [] a [number v] ? :: operators boolean // dropdown also contains text, boolean, list, command, reporter, and predicate; reports whether the input is of that
// data type (yes, BYOB has more data types than scratch)
the script ► :: operators cstart // returns the script inside. It is supposed to be a hybrid c-reporter thing, but scratchblocks doesn't support that type of block.
the () block :: operators reporter // works like [the script] but with a reporter/predicate block.
script variables ()► :: grey // this block creates variables that can only be used in the script. It is a variable block, but it is gray.
list [] ◄► :: list // it reports a list with that name.
[ v] as text :: list reporter // in BYOB, lists do not normally report as text, but as list monitors do. This converts a list to text.
copy of () :: list reporter // if a variable is set to a list, it updates with the list. Here is how to avoid that.
Blocks new to BYOB 3.1:
object [ v] :: sensing reporter // reports a sprite, a list of all sprites, or the stage
attribute [ v] :: sensing reporter // reports an attribute of the sprite
[ v] of [ v] :: sensing reporter // now you can drag any sprite to the right and any sprite to the left
clone :: operators reporter // reports a clone of the sprite
is [] a [ v] :: operators boolean // now has object in the menu of types
delete [ v] :: operators // deletes the object, attribute, or variable
Blocks new to snap 4.0
warp :: grey cstart // it is a control block, but it is gray. It runs everything in it at once
Some of the blocks seem meaningless, but that is because of BYOB's expanded data types.
How to Make a Mouse Trail
Want to add a mouse trail to your Scratch projects? Try our latest tutorial!
- InsaniacGuru77
- Scratcher
78 posts
A guide to [Scratchblocks] and other BBCode help
I've always wanted a block that says, Blocks new to BYOB 3.0:run {:: grey cap} ► :: control // runs the blocks in it
launch {:: grey cap} ► :: control // runs the blocks in it simultaneously to the script
call {:: grey cap} ► :: control reporter // allows the user to call a variable that is a reporter
report [] :: control cap // for custom reporters and Booleans, it tells what to report
stop block :: control cap // stops a custom block without reporting anything
debug :: control // an experimental block
debug () :: control reporter // ''
true :: operators boolean // reports true
false :: operators boolean // reports false
ascii code of [] :: operators reporter // reports the ascii code of a character
ascii () as letter :: operators reporter // reports the character for an ascii code
is [] a [number v] ? :: operators boolean // dropdown also contains text, boolean, list, command, reporter, and predicate; reports whether the input is of that
// data type (yes, BYOB has more data types than scratch)
the script ► :: operators cstart // returns the script inside. It is supposed to be a hybrid c-reporter thing, but scratchblocks doesn't support that type of block.
the () block :: operators reporter // works like [the script] but with a reporter/predicate block.
script variables ()► :: grey // this block creates variables that can only be used in the script. It is a variable block, but it is gray.
list [] ◄► :: list // it reports a list with that name.
[ v] as text :: list reporter // in BYOB, lists do not normally report as text, but as list monitors do. This converts a list to text.
copy of () :: list reporter // if a variable is set to a list, it updates with the list. Here is how to avoid that.
Blocks new to BYOB 3.1:object [ v] :: sensing reporter // reports a sprite, a list of all sprites, or the stage
attribute [ v] :: sensing reporter // reports an attribute of the sprite
[ v] of [ v] :: sensing reporter // now you can drag any sprite to the right and any sprite to the left
clone :: operators reporter // reports a clone of the sprite
is [] a [ v] :: operators boolean // now has object in the menu of types
delete [ v] :: operators // deletes the object, attribute, or variable
Blocks new to snap 4.0warp :: grey cstart // it is a control block, but it is gray. It runs everything in it at once
Some of the blocks seem meaningless, but that is because of BYOB's expanded data types.
repeat until <I receive [] :: events boolean>
end
Last edited by InsaniacGuru77 (Sept. 9, 2015 00:59:22)
When [this signature] receives a [view] :: events hat
ask [What is life in a perfect world?] and wait
set (answer) to [Gaming, coding, memes, band music, and SODAAA!!!!!!!!! ]
reply [You are correct.] and do not wait to [agree] :: sensing stack
- Discussion Forums
- » New Scratchers
- » A guide to [Scratchblocks] and other BBCode help