Download presentation
Presentation is loading. Please wait.
1
Unit 2 Getting Started With
Evangel College S.2 ICT
2
Start Moving Drag a MOVE block into the Scripts Area
3
Start Moving Click on the block to make the cat move
4
Add a Sound Drag out a PLAY DRUM and snap it onto the MOVE
5
Click and listen. (If you can’t hear, check volume control)
Add a Sound Click and listen. (If you can’t hear, check volume control)
6
Add a Sound You can choose different drums from menu
7
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
8
Start a Dance Click and try! Add another MOVE block.
Type in -10 steps. Add another PLAY DRUM block. Choose LOW BONGO drum from the menu. Click and try!
9
Programming concept: Sequence
Sequence is an ordered set of instructions. An instruction runs after another.
10
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 at the top of the screen.
11
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!) …
12
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
13
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
14
Change Effect Drag out a CHANGE EFFECT block.
Click to see what it does.
15
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.
16
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
17
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
18
Summary In the coming workshops, you will learn more about different categories of blocks and programming concepts. Enjoy!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.