Discuss Scratch
- Discussion Forums
 - » Help with Scripts
 - » The Official Guide to the Scratchblocks Plugin
        
         
- 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
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
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:
Do this:
Infact, there's 2 more things in Snap! that you could do with Scratchblocks!
Rings:
                        
                            1. Text inputs use brackets (), while reporters use parenthesis (())
Example:
Using brackets:
foo [bar] ::looksUsing parenthesis:
foo (bar) ::looksSo if you want to make this:
say (join [foo] [bar])but it ends up as this:
wait [foo] secs
say [(join [foo] [bar])]then check whether you're using brackets or parenthesis. It may throw you off especially on long stuff like this:
wait (foo) secs
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 hatnot this:
when clone is deleted3. Hey, remember when you could put entire blocks into code in Snap!? Well, that's possible here too!
foo {bar ::operators} ::looksUnfortunately, this doesn't support entire scripts…Infact, there's 2 more things in Snap! that you could do with Scratchblocks!
Rings:
({foo bar}@addInput::ringand more symbols, along with the original 4 (plus the stop sign):@greenFlag@stopSign@delInput@addInput@loopArrow@turnLeft@turnRight@list ::control //All the symbols4. 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
(#137)This isn't intentional, and it can also break stuff (the double brackets in backdrop block are an oversight)
Adding a “(” at the beginning of a reporter block gives it a red highlight.gives you((variable)((variable)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)
((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
- Create-Scratch101
 - 
                            
						
						
                            Scratcher
                        
						
						 
500+ posts
The Official Guide to the Scratchblocks Plugin
https://scratch.mit.edu/discuss/youtube/o5Y29-oo8foPlease don’t respond to stickies with non-constructive posts.
- mark-sss
 - 
                            
						
						
                            Scratcher
                        
						
						 
100+ posts
The Official Guide to the Scratchblocks Plugin
TIPS AND COOL THINGS YOU CAN DO WHEN MAKING SCRATCHBLOCKSGood job!
1. Text inputs use brackets (), while reporters use parenthesis (())
Example:
Using brackets:foo [bar] ::looksUsing parenthesis:foo (bar) ::looksSo if you want to make this:say (join [foo] [bar])but it ends up as this:
wait [foo] secssay [(join [foo] [bar])]then check whether you're using brackets or parenthesis. It may throw you off especially on long stuff like this:
wait (foo) secsadd (((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 hatnot this:when clone is deleted3. Hey, remember when you could put entire blocks into code in Snap!? Well, that's possible here too!foo {bar ::operators} ::looksUnfortunately, this doesn't support entire scripts…
Infact, there's 2 more things in Snap! that you could do with Scratchblocks!
Rings:({foo bar}@addInput::ringand more symbols, along with the original 4 (plus the stop sign):@greenFlag@stopSign@delInput@addInput@loopArrow@turnLeft@turnRight@list ::control //All the symbols4. Here's the … block:...That's all! If you have other tips feel free to reply (quote) to this!
- mark-sss
 - 
                            
						
						
                            Scratcher
                        
						
						 
100+ posts
The Official Guide to the Scratchblocks Plugin
Thank you, ST!Hey this discuss create to Scratch, not to JS (JavaScript). JavaScript is programming language.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
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
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)
- Discussion Forums
 - » Help with Scripts
 - 
            » The Official Guide to the Scratchblocks Plugin 
         













