Page 89 - Digicode_AI_class_5
P. 89

The fish 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.






























                                    Crystal sprite                      Crystal sprite





                                                                      Advanced Blocks & Game Creation     87
   84   85   86   87   88   89   90   91   92   93   94