Page 136 - TGPT_V5.0_C5_Flipbook
P. 136
Let's create a small script using the repeat() block in which the sprite repeats the actions in a
loop for the given number of times.
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.
134 Premium Edition-V

