1. What is Scratch?
• Scratch is a simple environment designed by the Kindergarden
Lifelong Learning Group at MIT.
• In Scratch, sprites (objects) are manipulated on the stage
(background) using various scripts (small program segments).
Each sprite has its own set of scripts to control its behaviors and
how it interacts with other sprites and events.
2. What is Programming
• Programming
• A computer program is simply to
• It is like a recipe: a set of instructions to tell a cook how to make a dish.
is the art of making a computer do what you want it to do
a set of instructions Tell computer how to perform a task.
3. Why Scratch
•Help kids become fluent with
Digital media
Express themselves creatively
Make connections to powerful ideas.
Learn important computational ideas.
Reason systematically.
5. MENU:
• This is how you can create a ‘New’ project, ‘Open’ or ‘Save’ an existing
project, ‘Save (a new project) as’ whatever name you choose, ‘Undo’ a
previous action, and obtain ‘Help’.
BLOCK DESCRIPTIONS:
The block categories are all color coded so
when you see a block of a specific color,
you can quickly determine which category it
came from.
6. GREEN FLAG / RED STOP
• Typically you click on the Green Flag to start your main program(s) and
the Red Stop sign to end them.
7. LEARNING TO SCRATCH
• The best way to learn Scratch is through experimentation. As it is an
interactive environment, feel free to stop and experiment as you work
through this tutorial.
WRITING SIMPLE SCRIPTS
• To create a script, we simply drag a block from the Blocks Palette onto
the Scripts Area. To run it, we can double-click it and observe what
happens on the stage. Let’s try…
Can be an number
11. Drag a MOVE block into the Scripts area Add a Sound
Drag out a PLAY DRUM and snap it onto the MOVE block.
Click on the block to make the cat move.
12. Behind the code
• Drag out a PLAY DRUM and snap it onto the MOVE block.
Click and listen.
If you can’t hear it,
check that the
sound on your
computer is on.
You can choose different
drums from the pull-down
menu.
13. Start a Dance
Add another MOVE block. Click
inside the block and type in a
minus sign.
Click on any of the
blocks to run the
stack.
Add another PLAY
DRUM block, then
choose a drum
from the menu.
Click to run.
15. Drag out a REPEAT block and drop it on top of the stack. You
want the mouth of the REPEAT to wrap around the other
blocks.
To drag a stack, pick it up from the top block.
16. Green Flag
Whenever you click the green flag, your script will start.
To stop, click the stop button.