Page 101 - 2611_SmartGPT Pro V(5.0) C-5
P. 101

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.

                 Step  8     Drag a start sound Meow from the Sound             if
                           blocks and place it inside the if…then block.               touching edge      ?    then

                 Step  9     Click  on Green Flag button  to  see the               start sound  Meow

                           output.





                                Role of Video Sensing extension in Scratch





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





























                 Using the Sensing Menu
                 Now use the Sensing menu to ask the user for age, user types in age, or display the stored

                 answer.

                 Now, create a variable named age.                                 when       clicked

                                                                                   set  age    to 0
                 After creating  the  variable  age, let  us create  the
                 following block stack for the sprite: Now, click on the           ask   What’s your age?  and wait
                 green flag.                                                          set  age    to answer

                                                                                  say  Join  I Know your age is  answer







                                                                                                  More on Scratch  99
   96   97   98   99   100   101   102   103   104   105   106