Page 76 - Touchcode_C5_Flipbook
P. 76

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 ping-pong game.

                  Create the given script.













                                                                                     Line Sprite        Nano Sprite













                         Crystal sprite                  Crystal sprite                     Magic Wand sprite

                  Click on the green flag to play the ping pong game using mouse.



































                   74      Touchcode–V
   71   72   73   74   75   76   77   78   79   80   81