Discuss Scratch

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
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
Scratcher
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
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)

Mandaring
Scratcher
18 posts

The Official Guide to the Scratchblocks Plugin

kittenclaw1 wrote:

define (this is cool)
nice
-Sodium_Test-
Scratcher
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:
{
::ring
} :: custom // invisible block is inside here
 [scratchblocks]
{
::ring
} :: custom // invisible block is inside here
[/scratchblocks]
and you can make blocks disconnect a long distance by doing this:
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
Scratcher
100+ posts

The Official Guide to the Scratchblocks Plugin

-Sodium_Test- wrote:

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 here
 [scratchblocks]
{
::ring
} :: custom // invisible block is inside here
[/scratchblocks]
and you can make blocks disconnect a long distance by doing this:
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]
Fill the gap
jen6C
Scratcher
35 posts

The Official Guide to the Scratchblocks Plugin

LandoWiggles wrote:

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>

The
 when @stopSign clicked :: events hat 
block 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
Scratcher
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 !
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
Scratcher
24 posts

The Official Guide to the Scratchblocks Plugin

jen6C wrote:

LandoWiggles wrote:

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>

The
 when @stopSign clicked :: events hat 
block 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
programming2Life
Scratcher
9 posts

The Official Guide to the Scratchblocks Plugin

programming2Life
Scratcher
9 posts

The Official Guide to the Scratchblocks Plugin

Tylerr-Elk
Scratcher
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 !
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-
Scratcher
31 posts

The Official Guide to the Scratchblocks Plugin

Tylerr-Elk-Alt wrote:

jen6C wrote:

LandoWiggles wrote:

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>

The
 when @stopSign clicked :: events hat 
block 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
That Isnt Possible In The Editor, But, There Is A Way,

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
Scratcher
500+ posts

The Official Guide to the Scratchblocks Plugin

(::ring)square(::ring)::ring control
leidymateo
Scratcher
100+ posts

The Official Guide to the Scratchblocks Plugin

when green flag clicked
stop all sounds(list :: list)
jessicatreasure
Teacher
1 post

The Official Guide to the Scratchblocks Plugin

when green flag clicked
say hello
leidymateo
Scratcher
100+ posts

The Official Guide to the Scratchblocks Plugin

<not <>><mouse down?>
96498cb
Scratcher
100+ posts

The Official Guide to the Scratchblocks Plugin

NO TESTING SCRATCHBLOCKS HERE!
shayneisnoice
Scratcher
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

Powered by DjangoBB