Page 61 - PlusGPT_V2.1_C1_Flipbook
P. 61

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.





































                                                                                              Scratch Programming  59
   56   57   58   59   60   61   62   63   64   65   66