Page 116 - Trackpad v5 class 5
P. 116

ADDING BLOCK TO ARROW1

                                                                   when      clicked
            Step  1   Add the following block stack.
                                                                  go to x:  –140   y:  30

                                                                  set size to  80  %


               when I receive  SpinningStopped
                                                  Step  2    Drag the when I receive New message block
                                                             from the  Events section  and choose  the
                           New message
                                                             SpinningStopped option from the drop-down
                           message1
                                                             list.




            Step  3    Drag an if…then block from the Control section           if   touching color   ?    then
                      and place the touching colour block from the

                      Sensing section.




            Step  4    Click the Color Picker tool to pick the exact colour from the wheel.


























            Step  5    Now, drag a set my variable to 0 block from the               set  my variable   to  Red

                      Variables section and click on the drop-down arrow
                      to open the list.



                 my variable

                 Winner
                                                        Step  6    Select  the  Winner option  from the list
                 Rename variable                                   and type the name of the colour.

                 Delete the "my variable" variable





             114  Pro (Ver. 5.0)-V
   111   112   113   114   115   116   117   118   119   120   121