Page 75 - modular4.0
P. 75
Chapter Profile
Let us make a small script.
Change the sprite to butterfly and change
the backdrop to flowers.
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, follow the given script:
The butterfly changes color and size when it touches the colors selected in the touch block.
Similarly, you can create scripts with two sprites, and they change color when they touch
each other.
CREATING A GAME
Let us create a fidget spinner that spins when touched with the mouse pointer. The first
step to draw a fidget spinner is to draw a fidget spinner.
To draw a fidget spinner go to Costumes tab and select Circle tool to draw and Fill tool give
colour.
Creating a Game in Scratch 73

