Professional Documents
Culture Documents
OVERVIEW
FULL SCREEN If you are new to Scratch, click
CHANGE LANGUAGE the right edge to expand the
RUN/STOP PROJECT Help panel for tips and tutorials.
STAGE HELP
SCRIPTS
SPRITES
2
CHANGE BACKDROP
A backdrop covers the entire Stage.
Backdrops cannot be resized or
move across the stage.
STAGE BUTTON
Click the small icons beneath
the Stage button to choose
a new backdrop from the CHOOSE BACKDROP
backdrops library, paint a new UPLOAD BACKDROP
backdrop, upload a photo or PAINT BACKDROP
use a webcam. BACKDROP FROM WEBCAM
2
ADD SPRITES
3
ADD SPRITES
Sprites are graphics you can CHOOSE LIBRARY SPRITE
place and animate on the Stage. PAINT NEW SPRITE
If you click and drag a sprite it
UPLOAD CUSTOM SPRITE
will appear in front of other
sprites. SPRITE FROM WEBCAM
3
MOVE SPRITE
4
MOVE SPRITE
The easiest way to move a sprite across the Stage is to click and drag with
your mouse or trackpad. Several blocks control the movement of sprites
while a project is running:
4
SWITCH COSTUMES
5
SWITCH COSTUMES
DUPLICATE TOOL
5
CHANGE DIRECTION
6
CHANGE DIRECTION
If you Shift-click a sprite and
choose info you can see the
current direction and rotation
style, as well as the x and y
position.
To change the direction of a sprite while your project is running there are
several options:
Use the Set Costume Center tool in the Paint Editor (near top right
corner of the canvas) to change the point around which a sprite rotates.
6
KEYBOARD CONTROL
A
W D
S
7
KEYBOARD CONTROL
The most popular way for players to
control sprites is with the keyboard.
The blocks to the left are the easiest
way. . .
7
MOUSE CONTROL
8
MOUSE CONTROL
One way to allow players to control the
movement of a sprite using a mouse or
trackpad is to put a GO TO block inside
FOREVER and choose mouse-pointer.
You need additional code on target sprites to switch costumes and make
a sound (below is an example from a shooting gallery game).
STOP
PLAY
RECORD
ADJUST RECORDING VOLUME
You may preview, add effects, adjust the volume and edit soundwaves.
9
ADD SOUND
Use the PLAY DRUM block for individual drumbeats, the REST block to pause
between notes, VOLUME blocks to adjust levels and TEMPO to adjust timing.
9
SAY/THINK/ASK
10
SAY/THINK/ASK
To create dialogue in your game, use
the SAY FOR block to automatically
create speech bubbles and pause before
moving on. Use WAIT blocks to pause a
sprite while another sprite is talking.
11
DETECT COLLISION
Use the first TOUCHING block with an
IF THEN to check if a sprite is touching
the mouse-pointer, the Stage edge or
another sprite. (Code to right would
go on a ball sprite).
Use the BOUNCE ON EDGE BLOCK to detect the Stage edge and change direction.
11
KEEP SCORE
12
KEEP SCORE
No blocks will appear in the Data category until you
click the Make a Variable button.
13
DISPLAY HEALTH/LIVES
To display data such as Health and Lives graphically you must
create a sprite with several costumes.
Create a variable
for each character
and choose For all
sprites so both the
player and display
sprites can use the
variable.
13
CLONE SPRITES
14
CLONE SPRITES
Use the CREATE CLONE OF block to
make a copy of a sprite. Here the
Spaceship makes a clone of the
Laser sprite when space is pressed.
15
TRACK INVENTORY
15
BROADCAST MESSAGES
Use BROADCAST blocks to send messages between two sprites (such as two
characters alternating speech) or to trigger several sprites to start running
scripts at exactly the same time. The Stage can also send and receive broadcast
messages.
If you use the BROADCAST AND WAIT block the blocks snapped beneath it will
not execute until all the sprites running WHEN I RECEIVE finish their scripts.
16
1) TITLE/OVERVIEW 9) ADD SOUND
2) CHANGE BACKDROP 10) SAY/THINK/ASK
3) ADD SPRITES 11) DETECT COLLISION
4) MOVE SPRITE 12) KEEP SCORE
5) SWITCH COSTUMES 13) DISPLAY HEALTH/LIVES
6) CHANGE DIRECTION 14) CLONE SPRITES
7) KEYBOARD CONTROL 15) TRACK INVENTORY
8) MOUSE CONTROL 16) BROADCAST/INDEX
With Scratch you can create your own interactive stories, games, and
animations. Use Scratch online at scratch.mit.edu or download from
scratch.mit.edu/scratch2download. Scratch is developed by the Lifelong
Kindergarten Group at the MIT Media Lab.