Discuss Scratch

Scratch---Cat
Scratcher
1000+ posts

A guide to [Scratchblocks] and other BBCode help

Do you mean

YubNubEwok wrote:

aceacerockscool wrote:

repeat <forever>
say (this is amazing)
end

aceacerockscool wrote:

<either [] or []>

I always wanted it...

aceacerockscool wrote:

when I receive [boredom v]
broadcast [I'm bored!!! v] and wait
if <really bored = [true v]?> then
do {
start [scratch v]
turn [life v] around
set [looks v] to [cool]
be yourself
define change
} in life

aceacerockscool wrote:

({
})

aceacerockscool wrote:

add variable [var]
delete variable [var]
add list [list]
delete list [list]
<var [] exists?>
<list [] exists?>
report the script {
} with inputs (#1) (#2)[-> v]

Please don't blockspam. If you'd like to test out the Scratchblocks feature, then please do it on this topic.
Example: [advertisement]

Download Scratch 2.0 | Check your messages | Check my messages
_____________________________________________________________________________________________________

If you want to subscribe to this forum topic, please click the
{} Follow Discussion :: ring sensing
button below this forum post! Thanks!

Scratch---Cat
Scratcher
1000+ posts

A guide to [Scratchblocks] and other BBCode help

(removed by moderator - your username is too long) wrote:

(removed by moderator - please don't spam or necropost)
  • please
    use
    only
    numbers
    for
    lists
Uh, it failed.
[scratchblocks]
Uh, it failed again. :: motion cap
[/scratchblocks]

Download Scratch 2.0 | Check your messages | Check my messages
_____________________________________________________________________________________________________

If you want to subscribe to this forum topic, please click the
{} Follow Discussion :: ring sensing
button below this forum post! Thanks!

Scratch---Cat
Scratcher
1000+ posts

A guide to [Scratchblocks] and other BBCode help

It's Pi!

(removed by moderator - your username is too long) wrote:

[ pi v] = ( 3. ) :: sound hat
( ( 1 v) :: motion stack ) ( 4 @greenFlag :: hat events ) (( 1 v):: motion stack ) ( [ 5 v] :: cap control ) ( ( 9 ) :: variables ) ( [2] :: looks stack ) ( [ 6 v] :: sensing boolean ) ( [ 5 v] :: cap control ) ( ( 3 - hit-hat v) :: sound stack loop ) ( [ 5 v] :: cap control ) {
( 8 [#888888] :: pen stack ) ( ( 9 ) :: variables ) ( <> 7 <> :: operators boolean ) ( ( 9 ) :: variables ) ( ( 3 - hit-hat v) :: sound stack loop ) ( [2] :: looks stack ) ( ( 3 - hit-hat v) :: sound stack loop ) ( 8 [#888888] :: pen stack ) ( 4 @greenFlag :: hat events ) ( [ 6 v] :: sensing boolean ) :: grey loop
} ( [2] :: looks stack ) ( [6 v] :: sensing boolean ) ( 4 @greenFlag :: hat events ) ( ( 3 - hit-hat v) :: sound stack loop ) ( ( 3 - hit-hat v) :: sound stack loop ) ( 8 [#888888] :: pen stack ) ( ( 3 - hit-hat v) :: sound stack loop ) ( [2] :: looks stack ) ( <> 7 <> :: operators boolean ) ( (9) :: variables ) {
( [ 5 v] :: cap control ) ( [ 0 v] :: list ) ( [2] :: looks stack ) ( 8 [#888888] :: pen stack ) ( 8 [#888888] :: pen stack ) ( 4 @greenFlag :: hat events ) ( ( 1 v) :: motion stack ) ( ( 9 ) :: variables ) ( <>7<> :: operators boolean ) ( ( 1 v) :: motion stack ) :: extension loop
} ( [ 6 v] :: sensing boolean ) ( (9) :: variables ) ( ( 3 - hit-hat v) :: sound stack loop ) ( ( 9 ) :: variables ) ( ( 9 ) :: variables ) ( ( 3 - hit-hat v) :: sound stack loop ) ( <>7<> :: operators boolean ) ( [ 5 v] :: cap control ) ( ( 1 v) :: motion stack ) ( [0 v] :: list ) :: custom-arg cap loop
Original version

Download Scratch 2.0 | Check your messages | Check my messages
_____________________________________________________________________________________________________

If you want to subscribe to this forum topic, please click the
{} Follow Discussion :: ring sensing
button below this forum post! Thanks!

Scratch---Cat
Scratcher
1000+ posts

A guide to [Scratchblocks] and other BBCode help

GHhttps://scratch.mit.edu/discuss/topic/307010/?page=1#post-3183162

Download Scratch 2.0 | Check your messages | Check my messages
_____________________________________________________________________________________________________

If you want to subscribe to this forum topic, please click the
{} Follow Discussion :: ring sensing
button below this forum post! Thanks!

Scratch---Cat
Scratcher
1000+ posts

A guide to [Scratchblocks] and other BBCode help

Can You tell us how to make custom define hat and custom defined block outline?

Download Scratch 2.0 | Check your messages | Check my messages
_____________________________________________________________________________________________________

If you want to subscribe to this forum topic, please click the
{} Follow Discussion :: ring sensing
button below this forum post! Thanks!

alefar
Scratcher
100+ posts

A guide to [Scratchblocks] and other BBCode help

YEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEET

Last edited by alefar (March 16, 2020 17:06:27)


My browser / operating system: Windows NT 10.0, Chrome 84.0.4147.105, No Flash version detected

select some of this and press shift+down to see stuff.

Hit Follow To See The Latest Uptades!

i have an EVIL KUMQUAT THAT WILL TAKE OVER THE WORLD!!!!!!!
he loves to eat.
he only has a small mouth, but some-times it can get BIG!
this is him!
normal:
(>:-( :: #000000) :: variables)
eating lots'a siggys:
(>:-(siggy(siggy(siggy(siggy(siggy :: #000000) :: #000000) :: #000000) :: #000000) :: #000000) :: variables)
he also likes stuff.
i have guards also. they do not know how to use a stabbing stick.
<._.ψ  :: sensing>
<._.ψ :: sensing>
<._.ψ :: sensing>
one of them when invaders, um, invade:
<._.ψ  :: sensing> // DIE!!!
an invader:
( ╯▔皿▔╯::variables ) // I SHALL EAT UR SIGGY!!!
oh, i forgot!
code:
define kumquat get siggy
ask [do you have a siggy?] and wait
if <(answer) = [yes]> then
eat (siggy) :: custom // this block has code similar to "/kill @e type=siggy"
get (weapons) :: custom // if weapons are bad, it skips this stage
get (armour) :: custom // if there is none or armour is bad, it skips this stage
end
define guard protect
ask [are you attacking?] and wait
if <(answer) = [yes]> then
if <not <[alefarsiggyguard] has [kumquatpack:stabbing_stick]? :: sensing >> then
give item [kumquatpack:stabbing_stick[ to [alefarsiggyguard] :: custom // this gives the stabbing stick to the guard in case they lost it
end
stab [siggy] :: custom
give item [kumquatpack:sheild] to [alefarkumquat] :: custom // this gives a sheild to the kumquat
end
-saIt-
Scratcher
14 posts

A guide to [Scratchblocks] and other BBCode help

Techno-CAT wrote:

Hello there!

Have any of you found it confusing to use the Scratchblocks plugin on the forums? Today I'll be explaining how to make them step-by-step in this easy to understand guide.

For more info, see the wiki.
If you want to test any of this out, please see here instead
—————————————————————————————————————

Reporter
Reporter blocks can be made using:

[scratchblocks]
(input)
[/scratchblocks]
For example:
(input)

Boolean
Boolean blocks are similar to reporter blocks, however they use <'s and >'s instead of ('s and )'s.

[scratchblocks]
<input>
[/scratchblocks]

For example:
<mouse down?>
Due to technological limits, boolean blocks look like reporter blocks.

Stack Blocks
Stack blocks can be formed by the following script:

[scratchblocks]
input
[/scratchblocks]

For example:
input
But what if it has a dropdown menu, number entry or string thread?

Well, we do this instead
[scratchblocks]
choose [input v]
[/scratchblocks]
Which will turn out to be
choose [input v]

For number entries, do
[scratchblocks]
input ( )
[/scratchblocks]

C block
C blocks must be closed by typing “end” after the last stack block inside it.

[scratchblocks]
repeat (10)

end
[/scratchblocks]
If there is no number input, leave out the ()'s
which makes:

repeat (10)

end

That's great! We now know the basics of the ScratchBlocks plugin.
But how does it all piece together?

Well, just piece together the blocks like this:

[scratchblocks]

when green flag clicked
if <mouse down?> then

play drum (3 v) for (0.2) beats
end

[/scratchblocks]

Which will turn out to look like this:

when green flag clicked
if <mouse down?> then

play drum (3 v) for (0.2) beats
end

—————————————————————————————————————
Other BBCode (BulletinBoardCode) help
—————————————————————————————————————

Have you ever seen Colour Text but not known how to do it? Well, enter the following code:
[color=red]yourtext[/color]

Have you also wanted some coding show up? Then do this:
[code]
[scratchblocks]
yourtext
[/scratchblocks
[/code]

There's some other stuff you ought to know too!

Here's a way to generate a big pile of scratchblocks if you already have the code created as a project.

* Shift-click the File menu and save project summary.
* Open the project summary and copy all the text.
* Paste it in between { scratchblocks } tags.
* Delete the parts you don't want.

(As suggested by Noumenon72)

Well, that hopefully sums it all up

Techno-CAT
Thank you, this helped a lot! ))
Mandalorian1001
Scratcher
55 posts

A guide to [Scratchblocks] and other BBCode help

when green flag clicked
if <helpful> then
forever
say [THANK YOU!!!!!!]
end
end

Hello Good People!
when green flag clicked
forever
Greet random people on Scratch
end
Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)
 This is bob:
^__^
He eats kumquats

THIS IS BIG
this is small
This is bold
This is italic
This is underlined
and this is a stroke
THIS IS ALL OF THEM COMBINED
This is a signature.
CREEPER? AWWWWWWWW MAN
I call that an old meme!
This is you after reading my signature!
Or this.
Thank you to a Scratcher whose name I forgot for this signature!
AshtonDrye
Scratcher
41 posts

A guide to [Scratchblocks] and other BBCode help

C stack{
hat::grey hat
}::grey stack


I AM A GNOME AND YOU BEEN GNOMED
xxHam_Sandwichxx
Scratcher
500+ posts

A guide to [Scratchblocks] and other BBCode help

I don’t know whether this post is relevant to this topic, but I have a question. How do you make it so you can scroll in a section with the code tags around it?

Last edited by xxHam_Sandwichxx (June 1, 2020 11:29:22)


cwkelliott47732
Scratcher
79 posts

A guide to [Scratchblocks] and other BBCode help

When gf clicked::pen
To change colors of blocks and you get ↑
When gf clicked::pen

be low contrast
when gf clicked
forever
set [Scratch v] to [#4d97ff]
set [Bad v] to [#855cd6]
end
cwkelliott47732
Scratcher
79 posts

A guide to [Scratchblocks] and other BBCode help

Say [hello]::motion

be low contrast
when gf clicked
forever
set [Scratch v] to [#4d97ff]
set [Bad v] to [#855cd6]
end
-_Snap-_
Scratcher
100+ posts

A guide to [Scratchblocks] and other BBCode help

Techno-CAT wrote:

Paddle2See wrote:

Nice guide! Is there any way to make it so that the square brackets are shown so people get less confused? I think if you put code tags around your markup, you might be able to do it

[scratchblocks]


[/scratchblocks]

Yep! It works

There we go! It's all complete
I've also added some other BBcode tricks
<[((10) + (10))] = [20]>
-_Snap-_
Scratcher
100+ posts

A guide to [Scratchblocks] and other BBCode help

Mandalorian1001 wrote:

when green flag clicked
if <helpful> then
forever
say [THANK YOU!!!!!!]
end
end
Woolabee.png
-_Snap-_
Scratcher
100+ posts

A guide to [Scratchblocks] and other BBCode help

[scratchblocks]
Hello
[/scratchblocks
op1298
Scratcher
83 posts

A guide to [Scratchblocks] and other BBCode help

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 stack} 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 celse
teach [people v] :: variables stack
how to do this :: sensing stack
because :: custom-arg celse
only these {turn cw (20) degrees :: motion hat} :: grey stack
are true tricks :: motion cend
end

is all that qualifies as [scratchblocks] “tricks”, the rest is self explanatory.
Wow, i think i can make a hat block in a c block.
if <> then {when green flag clicked} :: control
Well, i have learned how to do that, but i have knew how to do this for a long time…
if <> then {(x position)} :: control

Press Ctrl+Shift+Down after highlighting some of my signature to see the rest of my signature.
I have a big decision to make

Disclaimer: This is a big joke, so do not report me.
ROAD TO 100 FOLLOWERS!
██░░░░░░░░░ 13%

ROAD TO 100 FOLLOWERS! :: grey
(:: reporter motion)(:: reporter motion)(:: reporter)(:: reporter)(:: reporter)(:: reporter)(:: reporter)(:: reporter)(:: reporter)(:: reporter)(:: reporter) 13% :: grey
SERIOUSLY!?!?!? THIS PROJECT HAS ONLY 1 VIEW!?!?!? AND THIS!?!?!? REALLY!?!?!?
forever {(x position)} :: control cap
peng64
Scratcher
13 posts

A guide to [Scratchblocks] and other BBCode help

This isn't a bad guide, but I'd like to know how to force a color of a certain block so
broadcast [] []
can look like
broadcast []
but with two strings instead of one.
Nintendoisgood
Scratcher
24 posts

A guide to [Scratchblocks] and other BBCode help

A very wacky script!
stop [all v] :: hat
{
say [Hi!]
play sound [meow v]
next costume
} forever :: control
when gf clicked :: cap

Signed,

Nintendoisgood

Ctrl Shift Down to see the rest of me siggy

<;\) :: motion> //  This is Timothy. He protects me from pesky kumquats. 

when flag clicked
forever
go to [Nintendoisgood v]
follow [Nintendoisgood v] :: control
end

Every project of mine is made on a Mac Mini and an iPad Air 2.

RiiTag:
https://tag.rc24.xyz/user/969476634044428329



;
Nintendoisgood
Scratcher
24 posts

A guide to [Scratchblocks] and other BBCode help

peng64 wrote:

This isn't a bad guide, but I'd like to know how to force a color of a certain block so
broadcast [] []
can look like
broadcast []
but with two strings instead of one.
You add :: events to the end of the block.


Signed,

Nintendoisgood

Ctrl Shift Down to see the rest of me siggy

<;\) :: motion> //  This is Timothy. He protects me from pesky kumquats. 

when flag clicked
forever
go to [Nintendoisgood v]
follow [Nintendoisgood v] :: control
end

Every project of mine is made on a Mac Mini and an iPad Air 2.

RiiTag:
https://tag.rc24.xyz/user/969476634044428329



;
Nintendoisgood
Scratcher
24 posts

A guide to [Scratchblocks] and other BBCode help

Every single block:
// motion
move () steps

turn cw () degrees

turn ccw () degrees

point in direction ( v)

point towards [ v]

go to x: (0) y: (0)

go to [ v]

glide () secs to x: (0) y: (0)

change x by ()

set x to ()

change y by ()

set y to ()

if on edge, bounce

set rotation style [ v]

(y position)
(x position)
(direction)

// looks
say [] for (2) secs

say []

think [] for (2) secs

think []

show

hide
More later

Last edited by Nintendoisgood (Dec. 23, 2020 02:53:09)


Signed,

Nintendoisgood

Ctrl Shift Down to see the rest of me siggy

<;\) :: motion> //  This is Timothy. He protects me from pesky kumquats. 

when flag clicked
forever
go to [Nintendoisgood v]
follow [Nintendoisgood v] :: control
end

Every project of mine is made on a Mac Mini and an iPad Air 2.

RiiTag:
https://tag.rc24.xyz/user/969476634044428329



;

Powered by DjangoBB