Discuss Scratch

pac2005
Scratcher
39 posts

A guide to [Scratchblocks] and other BBCode help

TheFlamer wrote:

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

ultimateboy144 wrote:

making an extended C Block uses the following example
1.
if <> then

else

or otherwise :: control celse

end

if <> then

else

or otherwise :: control celse

end
In some programming languages that would be:
if <> then

else if <> :: control celse

else
end
[scratchblocks]
if <> then

else if <> :: control celse

else
end
[/scratchblocks]
In JavaScript I think it's like this:
if() {
} else if() {
} else {
}



My browser / operating system: Windows NT 10.0, Firefox 40.0.2, Flash 20.0 (release 0)
Last eaten by Evil Kumquat (Today 19:30:11)
when I receive [flash_player_version] :: motion
say [Windows 7, Flash 15.0 (release 0)] :: sensing
stop script :: custom
Tropical Productions
ultimateboy144
Scratcher
100+ posts

A guide to [Scratchblocks] and other BBCode help

Tropic wrote:

ultimateboy144 wrote:

making an extended C Block uses the following example
1.
if <> then

else

or otherwise :: control celse

end

if <> then

else

or otherwise :: control celse

end
In some programming languages that would be:
if <> then

else if <> :: control celse

else
end
[scratchblocks]
if <> then

else if <> :: control celse

else
end
[/scratchblocks]
In JavaScript I think it's like this:
if() {
} else if() {
} else {
}
oh realy?

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 clicked
if <[omg] = [true ]> then
say [omg!! scratch in commets] for (OMG_time) secs
set [OMG_time v] to [0 ]
end
stop [all v]
OMG!!
when green flag clicked
say [bleep!!!]
move (OMG_time) steps

when green flag clicked
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
Well, I'm going to play some-
Play minecraft forever
Blue-Monkey
Scratcher
100+ posts

A guide to [Scratchblocks] and other BBCode help

Nice guide

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!
——-…..——-…..——>–…..——>..——>–…..—>–…..——>..——…..——>..——>–…..—>–…..——>..—-..——-…..——>–…..——>..——>–…..—>–…..——>..——…..——>..—–..——-…..——>–…..——>..——>–…..—>–…..——>..——…..——>..—–.—–..——-…..——>–…..——>..——>–…..—>–>

Kumquat wrote:

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 clicked
say [Hello!] for (2) secs

when green flag clicked
forever
play sound [forever love, program, share v]until done
end
Remember,
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

snaps1 changed not the wrote:

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!
Hope It Works
How To Mess
quotes!
Just Change This:

test wrote:

Into This:

(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) wrote:

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

snaps1 wrote:

theonlygusti wrote:

You can aslo do this:
[[]scratchblocks]
[[]/scratchblocks]
To show the square brackets. It looks like:

[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.
Hope It Wprks
Yeah, how DO you do that?

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

when green flag clicked
You Need A Mircophone Like This:

http://i.stack.imgur.com/t8Stp.jpg

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

InsaniacGuru77 wrote:

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
Someone else has already made a topic that explains how you do that



My browser / operating system: Windows NT 10.0, Firefox 40.0.2, Flash 20.0 (release 0)
Last eaten by Evil Kumquat (Today 19:30:11)
when I receive [flash_player_version] :: motion
say [Windows 7, Flash 15.0 (release 0)] :: sensing
stop script :: custom
Tropical Productions
InsaniacGuru77
Scratcher
78 posts

A guide to [Scratchblocks] and other BBCode help

Tropic wrote:

InsaniacGuru77 wrote:

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
Someone else has already made a topic that explains how you do that
Well lol I learned without it

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:

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

excelguru wrote:

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.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.
I've always wanted a block that says,

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

Powered by DjangoBB