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

Cat displays the message “What’s your age?”












                                                                                         We can enter our age
                                                                                         here (Here, we have
                                                                                        entered the age 12) and
                                                                                        click on the Tick button.






                  After we enter our age, the cat says “I Know your age is 12”.




                          uiz    Bee       Which block is used to ask questions in Scratch?
                                           _____________________________________________________________





                            PROJECT: CHASE THE STARFISH

                  Now, let's create a project using Scratch blocks.


                  CHASE THE STARFISH
                  Step  1     Choose the Starfish sprite under the Animal category from the

                            Library.

                                                                                  when   clicked
                                                                                   forever
                                      Step  2     Choose the Underwater 1           glide 1  secs to  random position

                                              backdrop from the Library.


                  Step  3     Click on the Starfish sprite to make it active       when   clicked

                            and create the block stack as shown.                    forever
                                                                                     if  touching starfish  ?  then
                  Step  4     Add another sprite named Diver2 under the
                            People category from the Library. Click on the           play sound  pop   until done

                                    Diver2 sprite to make it active.                 glide 1 secs to  random position
                                    Step  5     Create the block stack as
                                               shown.

                                    Step  6     Now, click on the green flag to run your project.




                  100   Computer Science (V5.0)-V
   97   98   99   100   101   102   103   104   105   106   107