Page 83 - Trackpad_ipro 4.1_Class5
P. 83
Let’s program your sprites with some code.
Click on the block in the Script area to see your sprite, move 50 pixels to the right
(towards the face of the sprite).
More Motion Blocks
1 Drag and drop the “turn 15 degrees”
block to the previous block of code when you
see a grey bar between the 2 blocks of code.
2 Click on the script to play the
animation and see your sprite move.
Events Blocks
They are colour-coded yellow and are used to sense events,
which run the scripts like when a sprite is pressed, a key is
pressed, or the green flag is clicked. They are placed at the
top of any script. They control starting of the scripts. The first
block present in control is the “when green flag clicked”
block.
Drag the “when green flag clicked” block out in the coding
area on top of the blocks you already have in your script.
An Introduction to Scratch Programming 81

