Page 76 - TP_Modular_V2.1_Class5
P. 76
Drag the Event block, when green flag clicked to the script area. Drag the control
block, forever to the script area and put it to the green flag block. Drag the move
block and put it inside the forever block. Now, drag the if on edge, bounce block
and put it inside the forever block.
Now, put the control block if, then inside the forever block and snap the sensing
block, touching color in the hexagon of the if loop.
Now, create and run the given script.
The butterfly changes colour and size when it touches the colours selected in the
touch block.
Similarly, you can create scripts with two sprites, and they change colour when they
touch each other.
CREATING A GAME
Let us create a game in which when we touch the sprite with the mouse pointer, it
begins rotating.
74 Modular (Ver. 2.1)-V

