Page 77 - Trackpad_ipro 4.1_Class6
P. 77
The value of the degree specified in the Turn block can be changed according to our requirement.
turn 15 degrees turn 15 degrees
0
-45
45
-90 90
-135
135
180
Clockwise Anti-Clockwise
UNDERSTANDING BLOCKS
Blocks are puzzle piece shapes that are used to give instructions to the computer. A collection of
inter-locked blocks, called script makes a code in Scratch. When you double-click on the script,
Scratch runs the blocks from top to bottom. To use a block, simply drag it onto the coding area.
To remove a block from a script, just drag it to the left, away from the coding area.
Block Categories
The blocks in Scratch are divided into different categories based on their functions. In most of
these blocks, you can change the value in the block to suit your script.
Block category Use
The blocks that are used to control the movement of a sprite are known as
Motion Motion blocks. These are blue in colour.
The blocks in purple colour are Looks blocks. These control how a sprite
Looks appears on stage.
Sound blocks are in pink colour. These control sound functions. You can add
music to your Scratch project by using Sound blocks. You can even record
Sound
your voice and save it. You can play the recorded audio with a sprite.
These blocks are used to draw shapes and patterns on the stage, change the
Pen pen colour and size.
An event is a happening which occurs due to some other things that
happened before it. So, Events block actually control how the blocks in a
Events script, will start to run, if a particular action is done. Events blocks control
events and the starting of scripts. These are yellow in colour.
These blocks control the blocks within your scrips, inserting conditional
Control statements, loops, repeats and pauses.
These blocks identify what's happening at a given point and make your
Sensing sprites or background respond to user actions.
Scratch Programming—Game Creation 75

