Unit 1 Introduction to Scratch

Unit 2
Getting Started With
Evangel College
S.2 ICT
Start Moving
Drag a MOVE block into the Scripts Area
Start Moving
Click on the block to make the cat move
Add a Sound
Drag out a PLAY DRUM and snap it onto the MOVE
Add a Sound
Click and listen. (If you can’t hear, check volume control)
Add a Sound
You can choose different drums from menu
Programming concept: Parameter
• In the script, the value which can be
adjusted by the user is called a
parameter.
• For example, the number of steps in the
Move script or the instrument in the
Play Drum script
Start a Dance
Add another MOVE block.
Type in -10 steps.
Click and try!
Add another PLAY DRUM
block. Choose LOW BONGO
drum from the menu.
Programming concept: Sequence
Sequence is an ordered set of instructions.
An instruction runs after another.
Again and Again
Drag out a FOREVER block and drop it on top of
the stack so that the mouth of the FOREVER to
wrap around the other blocks.
Click the script to run.
(Tips: You can click on
any block to run a
stack)
To stop, click the STOP button
of the screen.
at the top
Programming concept: Loop
A loop repeats the execution of instructions.
=
…
…
(FOREVER block
loops infinitely.
There are other
types of loops,
FOREVER IF,
REPEAT and
REPEAT UNTIL.
You can explore them!)
Tips on block manipulation
To drag a stack, pick it up from the top block
If you drag out a block from the middle of a
stack, all of the blocks beneath it will come along
with it
Green Flag
Drag out a Green flag block and snap it on top of
the stack.
Whenever you click the Green Flag,
your script will start.
To stop, click the stop button
Change Effect
Drag out a CHANGE EFFECT block.
Click to see what it does.
Key Press
Drag out a KEY PRESS block and snap it on top of
the CHANGE EFFECT block.
Then, press the space bar on the keyboard.
Summary
You have learnt how to use the following Scratch
blocks to build interactive, multimedia project:
• MOVE block – move the sprite
• PLAY DRUM block – play drum sound
• FOREVER block – loop scripts forever
• GREEN FLAG block – start execution
• CHANGE EFFECT block – change the sprite
appearance
• KEY PRESS block – accept user keyboard input
Summary
You have also learnt the following
programming concepts:
• Sequence – an ordered set of
instructions
• Loop – repeat running the instructions
• Start execution – Tell the script to
start working
• Stop execution – Tell the script to stop
working
Summary
• In the coming workshops, you will learn
more about different categories of
blocks and programming concepts.
Enjoy!