Page 89 - TP_Prime_v2.2_Class_5
P. 89

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.                                                                                          CONDITIONAL BLOCKS IN SCRATCH



















                                                                                                                          87









                   Creating a Game


                 Let us create a fidget spinner that spins when touched with the mouse pointer. The

                 first step to create a fidget spinner is to draw a fidget spinner.

                 Now create the given script for the fidget spinner to spin.





















                 When you click on the green flag bring the mouse pointer on the fidget spinner sprite,
                 it starts spinning.
   84   85   86   87   88   89   90   91   92   93   94