Page 76 - TP_iPlus_V2.1_Class6
P. 76
These blocks identify what’s happening at a given point and make your
Sensing Sprites or background respond to user actions and different factors.
These blocks let you make comparisons or perform arithmetic functions on
Operators different values.
These blocks are used to draw shapes and patterns on the stage, change the
pen colour and size.
Pen
i + SPRITE’S DIRECTION
You can change the direction of the Sprite by using the Turn block under the Motions block
menu. The block will turn the Sprite in a clockwise direction by the specified
number of degrees. The block will turn the Sprite in an anti-clockwise direction
by the specified number of degrees.
The value of the degree specified in the Turn block can be changed according to our
requirement.
0
–45 45
–90 90
135
–135
180
Clockwise Anti-Clockwise
i + USE OF CONDITIONAL CONTROL BLOCKS
Many times, you have to do a task which is dependent on some condition. For example, you have
to make mango shake. There are two conditions:
a. Go to the refrigerator and check if there are mangoes. If mangoes are there, then you will
make mango shake.
b. If the mangoes are not there, you will make cold coffee.
Here the condition is the availability of mangoes.
We can also write this in two ways:
1. if 2. if
mangoes are available mangoes are available
then then
make the mango shake make the mango shake
else
make cold coffee
74
iPlus (Ver. 2.1)-VI

