Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 111 - 2607_Trackpad_Pro_5.1_flipbook_C5
P. 111

    Step  3    Click the Motion button to show the Motion blocks.                        move 100   steps

                     Step  4     Drag a Move 10 steps block to the code area and change the
                               value to 100.
                                                                                                          if        then
                     Step  5    Click the Control Button to show the Control blocks.

                     Step  6    Drag an if…then block to the code area.

                     Step  7    Drag  a  touching  mouse-pointer block  from  the Sensing block  and use it
                               with  an  if block.  Click  on the  drop-down arrow present  next  to  touching
                               mouse pointer block and select edge from the list.
                                                                                               if  touching  edge  ?  then
                     Step  8     Drag a start sound Meow from the Sound blocks and
                               place it inside the if…then block.                                start sound  Meow

                     Step  9     Click on Green Flag button to see the output.

                                    Role of Video Sensing extension in Scratch

                                                           Keep on clicking this icon until the
                                                                cat reaches the edge.

                     Using the Sensing Menu                                            when    clicked
                     Now use the Sensing menu to ask the user for age, user
                     types in age, or display the stored answer.                       set  age  to  0

                     Now, create a variable named age.                                 ask  What's your age?  and wait

                     After creating the variable  age, let us create  the             set  age   to  answer
                     following block stack for the sprite: Now, click on the           say  join  I Know your age is  answer
                     green flag.

                                                                                                      More on Scratch  109

| 106 107 108 109 110 111 112 113 114 115 116 |