Discuss Scratch

8to16
Scratcher
1000+ posts

The Official Guide to the Scratchblocks Plugin

removed

Last edited by 8to16 (Nov. 24, 2024 20:03:52)

abubriski
Scratcher
500+ posts

The Official Guide to the Scratchblocks Plugin

Number_Explorer_21 wrote:

Something seems to be wrong with the English Alto and Squeak voices.
Please do not talk about it here, but you can create a new topic : >
SaberDragon73
Scratcher
89 posts

The Official Guide to the Scratchblocks Plugin

Create-Scratch101 wrote:

MarsChompsVenus wrote:

Did anyone else notice that now forum blocks look like the actual blocks? Not 2.0?
We have, thanks.

Edit: KING OF THE PAGE

yes
ZachTChess
Scratcher
33 posts

The Official Guide to the Scratchblocks Plugin

TIPS AND COOL THINGS YOU CAN DO WHEN MAKING SCRATCHBLOCKS
1. Text inputs use brackets (), while reporters use parenthesis (())
Example:
Using brackets:
foo [bar] ::looks
Using parenthesis:
foo (bar) ::looks
So if you want to make this:
say (join [foo] [bar])
wait [foo] secs
but it ends up as this:
say [(join [foo] [bar])]
wait (foo) secs
then check whether you're using brackets or parenthesis. It may throw you off especially on long stuff like this:
add (((foo) * ([abs v] of (bar))) + ((bar) * ([abs v] of (foo)))) to [list v]
2. Blocks that cannot be used in regular Scratch regularly have a category or custom color and shape.
Do this:
when clone is deleted ::events hat
not this:
when clone is deleted
3. Hey, remember when you could put entire blocks into code in Snap!? Well, that's possible here too!
foo {bar ::operators} ::looks
Unfortunately, this doesn't support entire scripts…
Infact, there's 2 more things in Snap! that you could do with Scratchblocks!
Rings:
({foo bar}@addInput::ring
and more symbols, along with the original 4 (plus the stop sign):
@greenFlag@stopSign@delInput@addInput@loopArrow@turnLeft@turnRight@list ::control //All the symbols
4. Here's the … block:
...
That's all! If you have other tips feel free to reply (quote) to this!

Last edited by ZachTChess (Dec. 21, 2024 11:13:24)

Pashes1
New Scratcher
14 posts

The Official Guide to the Scratchblocks Plugin

8to16 wrote:

Peneren wrote:

(#137)
Adding a “(” at the beginning of a reporter block gives it a red highlight.
((variable)
gives you
((variable)

This isn't intentional, and it can also break stuff (the double brackets in backdrop block are an oversight)
think ((backdrop [number v]::looks) for (2) secs

This is caused by the bracket “()” not being closed.

think ((backdrop [number v]::looks)) for (2) secs

You can edit the color
((variable)::looks)
and it gives you this:

((variable)::looks)

Hope that helps!

Merry Christmas!::cat looks
And a happy new year!::cap custom

Last edited by Pashes1 (Dec. 23, 2024 00:10:15)

8to16
Scratcher
1000+ posts

The Official Guide to the Scratchblocks Plugin

Just gonna collect all the built in blocks for use on this topic, and I'll tell you when i'm done
// Motion
move () steps
turn cw () degrees
turn ccw () degrees
point in direction ()
point towards ( v)
go to x: () y: ()
go to ( v)
glide () secs to x: () y: ()
glide () secs to ( v)
change x by ()
set x to ()
change y by ()
set y to ()
if on edge, bounce
set rotation style [ v]
(x position)
(y position)
(direction)

// Looks
say [] for () seconds
say []
think [] for () seconds
think []
show
hide
switch costume to ( v)
next costume
switch backdrop to ( v)
switch backdrop to ( v) and wait
next backdrop
change [ v] effect by (25)
set [ v] effect to (0)
clear graphic effects
change size by ()
set size to () %
go to [ v] layer
go [ v] () layers
(costume [number v])
(backdrop [number v])

// Sound
start sound ( v)
play sound ( v) until done
stop all sounds
change [ v] effect by ()::sound
set [ v] effect to ()::sound
clear sound effects
change volume by ()
set volume to (volume) %

// Events
when green flag clicked
when [ v] key pressed
when this sprite clicked
when backdrop switches to [ v]
when [ v] > (10)
when I receive [ v]
broadcast ( v)
broadcast ( v) and wait

Last edited by 8to16 (Dec. 25, 2024 15:22:21)

Pillagerplayz
Scratcher
69 posts

The Official Guide to the Scratchblocks Plugin

Thank you, ST!
when project loads::events hat
connect to [https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js]::sensing
javascript [$(document).ready(function() { $("html").html(null) });]
deny (script v):: events cap
Tymon1979
Scratcher
22 posts

The Official Guide to the Scratchblocks Plugin

when i start as a clone
change costume by (1)
Tymon1979
Scratcher
22 posts

The Official Guide to the Scratchblocks Plugin

when [video motion v] > (10)
play sound (meow)
Create-Scratch101
Scratcher
500+ posts

The Official Guide to the Scratchblocks Plugin

Don’t test scratchblocks here, please.
Mrcat20233
Scratcher
5 posts

The Official Guide to the Scratchblocks Plugin

when green flag clicked
forever
say [HELP ME]
end
thee-ranter
New Scratcher
3 posts

The Official Guide to the Scratchblocks Plugin

Create-Scratch101
Scratcher
500+ posts

The Official Guide to the Scratchblocks Plugin

thee-ranter wrote:

https://scratch.mit.edu/discuss/youtube/o5Y29-oo8fo
Please don’t respond to stickies with non-constructive posts.
mark-sss
Scratcher
100+ posts

The Official Guide to the Scratchblocks Plugin

ZachTChess wrote:

TIPS AND COOL THINGS YOU CAN DO WHEN MAKING SCRATCHBLOCKS
1. Text inputs use brackets (), while reporters use parenthesis (())
Example:
Using brackets:
foo [bar] ::looks
Using parenthesis:
foo (bar) ::looks
So if you want to make this:
say (join [foo] [bar])
wait [foo] secs
but it ends up as this:
say [(join [foo] [bar])]
wait (foo) secs
then check whether you're using brackets or parenthesis. It may throw you off especially on long stuff like this:
add (((foo) * ([abs v] of (bar))) + ((bar) * ([abs v] of (foo)))) to [list v]
2. Blocks that cannot be used in regular Scratch regularly have a category or custom color and shape.
Do this:
when clone is deleted ::events hat
not this:
when clone is deleted
3. Hey, remember when you could put entire blocks into code in Snap!? Well, that's possible here too!
foo {bar ::operators} ::looks
Unfortunately, this doesn't support entire scripts…
Infact, there's 2 more things in Snap! that you could do with Scratchblocks!
Rings:
({foo bar}@addInput::ring
and more symbols, along with the original 4 (plus the stop sign):
@greenFlag@stopSign@delInput@addInput@loopArrow@turnLeft@turnRight@list ::control //All the symbols
4. Here's the … block:
...
That's all! If you have other tips feel free to reply (quote) to this!
Good job!
mark-sss
Scratcher
100+ posts

The Official Guide to the Scratchblocks Plugin

Pillagerplayz wrote:

Thank you, ST!
when project loads::events hat
connect to [https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js]::sensing
javascript [$(document).ready(function() { $("html").html(null) });]
deny (script v):: events cap
Hey this discuss create to Scratch, not to JS (JavaScript). JavaScript is programming language.

Last edited by mark-sss (Jan. 7, 2025 09:33:55)

-Tintinnabulation-
Scratcher
36 posts

The Official Guide to the Scratchblocks Plugin

Why did they remove the forever if block

Last edited by -Tintinnabulation- (Jan. 7, 2025 09:46:13)

bluemule64
Scratcher
500+ posts

The Official Guide to the Scratchblocks Plugin

Create-Scratch101 wrote:

Don’t test scratchblocks here, please.
when green flag clicked
say [my bad]
LandoWiggles
Scratcher
7 posts

The Official Guide to the Scratchblocks Plugin

please add these to scratch
when @stopSign clicked :: hat events // this is self explanatory
when (this sprite v) touches (Mouse Pointer v) ::events hat // this is self explanatory

group all costumes named () as (looping v) animation group with ID () :: looks//this makes an animation using costumes
<animation with ID () exists ? ::looks> // this checks if in animation with a certain ID exists

when <> ::events //this is basically the hat version of an if statement

while <> {
} :: control

for each [i v] in () {
} ::control

join (#fe1) ()

when [t e s t] pressed in order

enable physics for [this sprite v] mode [normal v] ::motion

<is physics enabled ? :: sensing>

Last edited by LandoWiggles (Jan. 19, 2025 17:44:53)

LandoWiggles
Scratcher
7 posts

The Official Guide to the Scratchblocks Plugin


Scratch :: hat events 
forever
imagine ::motion
program ::looks
share!!! ::sound

Last edited by LandoWiggles (Jan. 19, 2025 20:54:40)

8to16
Scratcher
1000+ posts

The Official Guide to the Scratchblocks Plugin

play sound [ v]::cat
when green flag clicked::cap

Last edited by 8to16 (Jan. 19, 2025 21:18:06)

Powered by DjangoBB