Page 43 - ModularV1.1 _c5_flipbook
P. 43
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.
Block
Use
category
These blocks are used to place your sprites on the stage or move
Motion
them.
Looks These blocks control what your sprites and backdrop look like.
Sound These blocks are used to play or stop sounds.
These blocks are used to draw shapes and patterns on the stage,
Pen
change the pen colour and size.
These blocks create and manipulate data in your animations and
Data
games.
These blocks are fundamental blocks. Each script has an event as its
Events
start that tells the script to run.
These blocks control the blocks within your scripts, inserting
Control
conditional statements, loops, repeats and pauses.
Sensing These blocks identify what's happening at a given point and make
your sprites or background respond to user actions.
Operators These blocks let you make comparisons between or perform
arithmetic functions on different values.
SETTING THE SPRITE POSITION
The stage is divided into different values of x and y. Each dot on the stage is made
up of both x and y values. The value of x gives the horizontal (left to right) location
of the Sprite. The value of y gives the vertical (top to bottom) location of the
Sprite. The centre of the stage has x and y values as 0.
block helps you to fix the position of the sprite at the beginning
of a script. Sometimes due to some scripts, the sprite goes beyond the stage.
Programming in Scratch 41

