Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » The Official Guide to the Scratchblocks Plugin
- bluemule64
-
500+ posts
The Official Guide to the Scratchblocks Plugin
Don’t test scratchblocks here, please.
when green flag clicked
say [my bad]
- LandoWiggles
-
4 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
-
4 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
-
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)
- Mandaring
-
18 posts
The Official Guide to the Scratchblocks Plugin
nicedefine (this is cool)
- -Sodium_Test-
-
88 posts
The Official Guide to the Scratchblocks Plugin
something to add:
if you put ::ring by literally itself in a c block, it creates an invisible block
example:
and you can make blocks disconnect a long distance by doing this:
if you put ::ring by literally itself in a c block, it creates an invisible block
example:
{
::ring
} :: custom // invisible block is inside here
[scratchblocks]
{
::ring
} :: custom // invisible block is inside here
[/scratchblocks]
move (1) steps
::ring
say [hold up, why aren't we connected?]
[scratchblocks]
move (1) steps
::ring
say [hold up, why aren't we connected?]
[/scratchblocks]
- 17Domin0
-
100+ posts
The Official Guide to the Scratchblocks Plugin
Fill the gap something to add:
if you put ::ring by literally itself in a c block, it creates an invisible block
example:{
::ring
} :: custom // invisible block is inside hereand you can make blocks disconnect a long distance by doing this:[scratchblocks]
{
::ring
} :: custom // invisible block is inside here
[/scratchblocks]move (1) steps
::ring
say [hold up, why aren't we connected?][scratchblocks]
move (1) steps
::ring
say [hold up, why aren't we connected?]
[/scratchblocks]
- jen6C
-
35 posts
The Official Guide to the Scratchblocks Plugin
please add these to scratchwhen @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>
The
when @stopSign clicked :: events hatblock has been rejected by the Scratch team:
source1.2 “When stop sign clicked” hat block
This block would allow users to click the stop sign to run a script. However, the stop sign is designed to stop all the scripts in the project. With this block in place, more scripts will start when you want the project to stop, thus defeating the purpose of the stop sign. Regardless, there are workarounds for this block using the timer or ghost effect blocks; these can be found in this post or this post.
This suggestion extends to any block that causes a script to be run as a result of the stop sign being clicked, not just the specific hat block below. For more information, see this post.
- Tylerr-Elk-Alt
-
24 posts
The Official Guide to the Scratchblocks Plugin
Use this great script for the thumbnails of your project! Make sure to keep the costume size 480 x 360 !
Yeah sorry for the long script. Make sure to make the variables “For this Sprite only” since they
won't be used in other sprites.
- @Tylerr-Elk !!
when green flag clicked
go to x: (0) y: (0)
forever
reset timer
end
when green flag clicked
show
set size to (125) %
repeat (50)
change size by (((100) - (size)) / (4))
end
repeat (25)
change [ ghost] effect by (4)
end
hide
when [ timer] > (0)
go to x: (0) y: (456)
set [ Times Bounced] to [0]
set [ yv] to [0]
repeat until <(Times Bounced) = [10]>
change [ yv] by (-1)
change y by (yv)
if <(y position) < [0]> then
change [ Times bounced] by (1)
set [ yv] to ((15) / (Times bounced))
end
end
Yeah sorry for the long script. Make sure to make the variables “For this Sprite only” since they
won't be used in other sprites.
- @Tylerr-Elk !!
- Tylerr-Elk-Alt
-
24 posts
The Official Guide to the Scratchblocks Plugin
please add these to scratchwhen @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>
Thewhen @stopSign clicked :: events hatblock has been rejected by the Scratch team:source1.2 “When stop sign clicked” hat block
This block would allow users to click the stop sign to run a script. However, the stop sign is designed to stop all the scripts in the project. With this block in place, more scripts will start when you want the project to stop, thus defeating the purpose of the stop sign. Regardless, there are workarounds for this block using the timer or ghost effect blocks; these can be found in this post or this post.
This suggestion extends to any block that causes a script to be run as a result of the stop sign being clicked, not just the specific hat block below. For more information, see this post.
Hello fellow scratcher. I would like to say that your block here can be recreated
Original
while <> {
} :: control
New
repeat until <not <Place holder>>
Place holder
end
- Tylerr-Elk
-
59 posts
The Official Guide to the Scratchblocks Plugin
Use this great script for the thumbnails of your project! Make sure to keep the costume size 480 x 360 !
Yeah sorry for the long script. Make sure to make the variables “For this Sprite only” since they
won't be used in other sprites.
- @Tylerr-Elk !!
when green flag clicked
go to x: (0) y: (0)
forever
reset timer
end
when green flag clicked
show
set size to (125) %
repeat (50)
change size by (((100) - (size)) / (4))
end
repeat (25)
change [ ghost] effect by (4)
end
hide
when [ timer] > (0)
go to x: (0) y: (456)
set [ Times Bounced] to [0]
set [ yv] to [0]
repeat until <(Times Bounced) = [10]>
change [ yv] by (-1)
change y by (yv)
if <(y position) < [0]> then
change [ Times bounced] by (1)
set [ yv] to ((15) / (Times bounced))
end
end
Yeah sorry for the long script. Make sure to make the variables “For this Sprite only” since they
won't be used in other sprites.
- @Tylerr-Elk !!
- -Tintinnabulation-
-
31 posts
The Official Guide to the Scratchblocks Plugin
That Isnt Possible In The Editor, But, There Is A Way,please add these to scratchwhen @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>
Thewhen @stopSign clicked :: events hatblock has been rejected by the Scratch team:source1.2 “When stop sign clicked” hat block
This block would allow users to click the stop sign to run a script. However, the stop sign is designed to stop all the scripts in the project. With this block in place, more scripts will start when you want the project to stop, thus defeating the purpose of the stop sign. Regardless, there are workarounds for this block using the timer or ghost effect blocks; these can be found in this post or this post.
This suggestion extends to any block that causes a script to be run as a result of the stop sign being clicked, not just the specific hat block below. For more information, see this post.
Hello fellow scratcher. I would like to say that your block here can be recreated
Original
while <> {
} :: control
Newrepeat until <not <Place holder>>
Place holder
end
It Is This Script Below This Text:
when green flag clicked
forever
reset timer
end
when [ Timer v] > (0.01)
say [Hello Stop Sign!] for [2] seconds// Change This To Whatever You Want
Last edited by -Tintinnabulation- (Feb. 9, 2025 12:13:55)
- AmpElectrecuted
-
500+ posts
The Official Guide to the Scratchblocks Plugin
(::ring)square(::ring)::ring control
- leidymateo
-
100+ posts
The Official Guide to the Scratchblocks Plugin
when green flag clicked
stop all sounds(list :: list)
- jessicatreasure
-
1 post
The Official Guide to the Scratchblocks Plugin
when green flag clicked
say hello
- leidymateo
-
100+ posts
The Official Guide to the Scratchblocks Plugin
<not <>><mouse down?>
- 96498cb
-
100+ posts
The Official Guide to the Scratchblocks Plugin
NO TESTING SCRATCHBLOCKS HERE!
- shayneisnoice
-
49 posts
The Official Guide to the Scratchblocks Plugin
Do You think my game is going good?
let me know if theres anything I could do to make it better thanks. https://scratch-mit-edu.ezproxyberklee.flo.org/projects/1131532906
let me know if theres anything I could do to make it better thanks. https://scratch-mit-edu.ezproxyberklee.flo.org/projects/1131532906
- Discussion Forums
- » Help with Scripts
-
» The Official Guide to the Scratchblocks Plugin