Coding With Scratch
Coding With Scratch
Coding With Scratch
PROGRAMMING
SCRATCH
Saved s
username
Coding
is a hoot!
A WORLD OF IDEAS:
SEE ALL THERE IS TO KNOW
www.dk.com
What is Scratch?
A program is a list of
instructions for the
computer
What is Scratch?
Scratch is a computer programming language thats
easy for beginners to use. In Scratch, programs are
made by joining together coloured blocks using the
mouse. These groups of blocks (called scripts) tell
characters on the screen (called sprites) what to do.
Scratch is free, safe, and fun to experiment with.
Scratch Projects
With Scratch, you can make your own interactive
stories, animations, games, music, and art.
Scratch has large collections (or libraries) of
cool graphics and fun sounds you can play
around with. Let your imagination
run wildyoull soon
pick up the coding
skills you need!
A WORLD OF IDEAS:
SEE ALL THERE IS TO KNOW
Learn more at
www.dk.com and
http://scratch.mit.edu
Shark patrol
by abcd (unshared)
Backdrop
(background
picture)
clicked
forever
next costume
wait
0.25 secs
move 10 steps
if on edge, bounce
A WORLD OF IDEAS:
SEE ALL THERE IS TO KNOW
Learn more at
www.dk.com and
http://scratch.mit.edu
Answers:
1. script, 2. sprites, 3. stage
4. running, 5. library
when
Scratch Activities
PROGRAM
MOVE TO A BEAT
Have your sprite dance to a drum beat.
Choose your sprite:
New sprite:
Choose a sprite
from the library
when
clicked
forever
move 30 steps
play drum 1
GO!
PROGRAM
KEY MOVES
Use the arrow keys to move the sprite.
GO!
A WORLD OF IDEAS:
SEE ALL THERE IS TO KNOW
point in direction 0
move
move
10
steps
10
steps
point in direction 90
move
move
10
steps
10
Learn more at
www.dk.com and
http://scratch.mit.edu
steps
Scratch Activities
PROGRAM
COLOUR CHANGE
Press a key and change the colour of a sprite.
Choose your sprite:
New sprite:
Choose a sprite
from the library
change color
GO!
effect by 25
Press
space bar to
change colours
Tip:
change color
or
effect by 25
Type a
different
number
Then press
the space
bar again
PROGRAM
SAY SOMETHING
What do you want your sprite to say?
Choose your sprite:
New sprite:
Choose a sprite
from the library
Coding
is a hoot!
GO!
Click on the
sprite to start
A WORLD OF IDEAS:
SEE ALL THERE IS TO KNOW
Learn more at
www.dk.com and
http://scratch.mit.edu
secs
Scratch
Glossary
animation
Changing pictures quickly to
make something appear to
move on the screen.
backdrop
The picture behind the sprites
on the stage.
LINGO
event
Something that happens on the
computer, like a mouse click.
script
A stack of instructions that are
run in order.
input
Data that goes into a program;
for example, from the keyboard.
sprite
A picture on the stage that a
script can move and change.
library
A collection of sprites, sounds,
or costumes.
stage
The area containing the sprites,
where a Scratch project runs.
loop
An instruction that makes other
instructions repeat.
string
The word used by programmers
for data that contains words.
condition
A true or false? question that
is used to make a decision in a
computer program.
program
A list of instructions that tell a
computer what to do.
costume
The picture a sprite shows
on the stage.
operator
A block that works something
out from data, such as adding
two numbers together.
variable
A place to store data in a
program. A variable always
has a name and a value.
backpack
A way to copy things between
Scratch projects.
block
An instruction in Scratch.
Blocks can be joined together.
bug
A mistake in a program. Its
called a bug because insects
got into the wiring of the first
computers, causing errors.
A WORLD OF IDEAS:
SEE ALL THERE IS TO KNOW
Learn more at
www.dk.com and
http://scratch.mit.edu