Scratch Module
Scratch Module
3. Motion ……………………………………………………………….. 15
4. Looks ……………………………………………………………….. 17
5. Sounds ……………………………………………………………….. 20
6. Events ……………………………………………………………….. 22
7. Control ……………………………………………………………….. 24
8. Sensing ……………………………………………………………….. 26
9. Operators ……………………………………………………………….. 28
2
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
3
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
4
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
5
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
6
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
7
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
8
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
9
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
10
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
11
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
12
BLOCKS SHAPE
There are six different block shapes: Hat, Stack, Boolean, Reporter, C and Cap.
Hat block
LY
N
O
S
ER
Stack block
N
AR
LE
S
ES
Boolean block
R
FO
PY
Reporter block
O
C
T
O
N
O
D
13
D
O
N
O
T
C
O
PY
FO
R
ES
C block
Cap block
S
LE
AR
N
ER
S
O
N
LY
14
LY
N
O
S
ER
Motion blocks are an essential part of programming in Scratch, and they allow you to control
N
the movement of your sprites. You can use them to create games, animations, and other
AR
interactive programs.
LE
S
ES
R
FO
PY
O
C
T
O
N
O
D
15
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
16
LY
N
O
S
ER
Looks blocks are a fun and easy way to change the appearance of your sprites in
Scratch. You can use them to create animations, change the way your sprites look, and
N
add dialogue to your programs.
AR
LE
S
ES
R
FO
PY
O
C
T
O
N
O
D
17
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
18
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
19
LY
N
O
S
ER
Sound blocks are blocks of code that allow you to add sound to your programs. You can
N
use sound blocks to play sound effects, music, and other audio in your programs.
AR
LE
S
ES
R
FO
PY
O
C
T
O
N
O
D
20
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
21
LY
N
O
S
ER
Events blocks are an essential part of programming in Scratch, and they allow you to
N
create interactive programs that respond to user input and other events.
AR
LE
S
ES
R
FO
PY
O
C
T
O
N
O
D
22
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
23
LY
N
O
S
ER
Control blocks are blocks of code that allow you to control the flow of your program. They
are used to create loops, control the order in which blocks are executed, and make
N
decisions based on certain conditions.
AR
LE
S
ES
R
FO
PY
O
C
T
O
N
O
D
24
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
25
LY
N
O
S
ER
Sensing blocks are blocks of code that allow your sprites (characters or objects in
N
your program) to detect and respond to their environment. You can use sensing
AR
blocks to check the position of your sprites on the stage, the color of a pixel, or the
distance to another sprite.
LE
S
ES
R
FO
PY
O
C
T
O
N
O
D
26
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
27
LY
N
O
S
ER
Operator blocks are blocks of code that perform mathematical operations such as
addition, subtraction, multiplication, and division. You can use operator blocks to perform
N
calculations and make decisions based on the result of those calculations.
AR
LE
S
ES
R
FO
PY
O
C
T
O
N
O
D
28
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
29
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
30
LY
N
O
S
Variables are like containers that you can use to store values, such as numbers or strings of text.
ER
You can use variables to keep track of important data in your program, and to make your
program more flexible and interactive.
N
There are two types of variables in Scratch: global variables and local variables.
AR
Global variables are variables that can be accessed and modified by any script in your program.
LE
They are useful for storing data that you want to use in multiple scripts or that you want to share
between different sprites.
S
Local variables are variables that are only accessible and modifiable by the script in which they
ES
are defined. They are useful for storing data that is only needed in a particular script and that you
don’t need to share with other scripts or sprites.
R
FO
PY
O
C
T
O
N
O
D
31
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
32
D
O
N
O
T
C
O
PY
FO
R
ES
S
LE
AR
N
ER
S
O
N
LY
33