Page 126 - Trackpad_V2.1_Class5
P. 126

ADDING MORE BLOCKS TO ARROW1


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




                                                   Step  2    Drag an if…then block from the Control section and
                                                             place the touching colour block from the Sensing

                                                             section.

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



























                  Step  4    Now,  drag a  set my  variable  to 0 block  from the
                            Variables section and click on the drop-down arrow to
                            open the list.


                      my variable                   Step  5     Select the Winner option from the list and type the
                      Winner                                  name of the colour.

                      Rename variable
                      Delete the "my variable" variable





                  Step  6    Drag a  broadcast  block  and  click on  the  New
                            Message.












                  124   Trackpad (V2.1)-V
   121   122   123   124   125   126   127   128   129   130   131