Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Guide To All Scratch Blocks
- Lukesstitch
-
Scratcher
100+ posts
Guide To All Scratch Blocks
Guide To All Scratch Blocks
Motion
(x/y position/direction :: motion)
These blocks will report the position of sprites.
Looks
Note: This guide is not finished yet, but I will be finishing it soon.
Motion
move () stepsThis block will make your sprite move a certain amount of steps, in the direction that the sprite is facing.
turn cw () degreesThis block will make your sprite turn a certain amount of degrees clockwise.
turn ccw () degreesThis block will make your sprite turn a certain amount of degrees anti-clockwise.
point in direction ( )This block can be used to make your sprite face different directions.
go to x: () y: ()This block can be used to make sprites go to different positions.
go to [ v]This can be used for a sprite to go to another sprite/the mouse pointer.
glide () secs to x: (0) y: (0)This block makes a sprite glide to a certain position.
set/change x/y by () :: motionThese blocks can make sprites move.
(x/y position/direction :: motion)
These blocks will report the position of sprites.
Looks
say/think () for (2) secs :: looksThese blocks make speech/thought bubbles show on the sprite, ‘saying’/'thinking' things for a certain amount of time.
say ()These blocks make speech/thought bubbles show on the sprite, ‘saying’/'thinking' things.
show/hide :: looksThese blocks make sprites show and hide.
switch backdrop/costume to [ v] :: looksThese blocks switch the backdrops and the costumes.
change [graphic v] effect by ()These blocks will change graphic effects e.g. changing the colour of the sprite.
set [graphic v] effect to ()These blocks will set graphic effects to a certain number.
clear graphic effectsThis block will clear graphic effects.
change size by ()This block will change the size of the sprite.
set size to () %This block will set the sprite's size.
go to front/back layer :: looksThis block will make the sprite go to the front or back layer.
go forward/backward () layers :: looksThis block will make the sprite go to forward/backward layers.
(costume/backdrop number/name :: looks)This will report the costume/backdrop's number/name.
(size)This will report the sprite's size.
Note: This guide is not finished yet, but I will be finishing it soon.
- deck26
-
Scratcher
1000+ posts
Guide To All Scratch Blocks
This is not what this forum is for though. The wiki pages give lots of help on the blocks and hopefully the help Scratch provides within a project will reappear at some point. The tutotrial projects also cover most of the basic blocks.
Great that you want to help but the right way is to let those needing help post questions and respond where you have something useful to add.
Great that you want to help but the right way is to let those needing help post questions and respond where you have something useful to add.
- Lukesstitch
-
Scratcher
100+ posts
Guide To All Scratch Blocks
Sound
Pen
play sound [ v] until doneThis block will play sounds on projects.
stop all soundsThis block will stop all sounds.
play drum ( v) for (0.25) beatsThis block will play drums.
play note ( v) for (0.5) beatsThis block will play instrument notes.
set instrument to ( v)This block will set the music instrument that the noteblocks will play.
(volume/tempo :: sound)These blocks will report the volume/tempo of the sound.
change tempo by ()This block can be used to change the tempo.
set tempo to () bpmThis block will set the tempo to your amount of bpm.
change volume by ()This block will change the volume of the sounds in the sound editor.
set volume to () %This block will set the volume of the sounds in the sound editor.
Pen
erase all :: penThis block will erase all pen.
pen down/up :: penPen down will make the pen start, pen up will make the pen stop.
set pen color to [#af4cbf]This block will set the pen colour.
change pen color by ()This block will change the pen colour.
- Lukesstitch
-
Scratcher
100+ posts
Guide To All Scratch Blocks
Events
No scripts can work without hat blocks, because hat blocks decide when the script runs. Most hat blocks are events blocks.
No scripts can work without hat blocks, because hat blocks decide when the script runs. Most hat blocks are events blocks.
when green flag clicked :: controlStarts scripts when the green flag is clicked to start the project.
when [ v] key pressed :: controlStarts scripts when a certain key is pressed.
when this sprite/stage clicked :: control :: hatStarts scripts when sprite or stage is clicked.
when backdrop switches to [ v] :: controlStarts scripts when backdrop switches to a certain backdrop.
when [loudness/timer v] > () :: controlStarts scripts when the loudness/timer is over a certain number.
when I receive [ v] :: controlStarts scripts when a broadcast is received.
broadcast [ v] :: controlSends broadcasts to other sprites/stage.
- Lukesstitch
-
Scratcher
100+ posts
Guide To All Scratch Blocks
Control
This block makes the scripts of code wait a certain amount of seconds.
This block makes scripts repeat.
This block will make scripts repeat until all of the scripts stop.
This will make scripts run if (<boolean>).
This is the same as the previous block but you can use this block to make something else happen if the boolean is false.
wait () secs :: events
This block makes the scripts of code wait a certain amount of seconds.
repeat () :: events
end
This block makes scripts repeat.
forever :: events
end
This block will make scripts repeat until all of the scripts stop.
if <> then :: events
end
This will make scripts run if (<boolean>).
if <> then :: events
else
end
This is the same as the previous block but you can use this block to make something else happen if the boolean is false.
- Paddle2See
-
Scratch Team
1000+ posts
Guide To All Scratch Blocks
It's great that you want to help out your fellow Scratchers!
But there is no need for a guide like this - it's all covered in the Scratch Wiki
https://en.scratch-wiki.info/wiki/Blocks
You can help best here by looking for topics that describe a scripting problem and trying to fix it. You could also help by pointing folks to the Scratch Wiki for block descriptions - maybe in your forum signature
But there is no need for a guide like this - it's all covered in the Scratch Wiki
https://en.scratch-wiki.info/wiki/Blocks
You can help best here by looking for topics that describe a scripting problem and trying to fix it. You could also help by pointing folks to the Scratch Wiki for block descriptions - maybe in your forum signature

- Discussion Forums
- » Help with Scripts
-
» Guide To All Scratch Blocks



