Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 112 - 2612 Digimind C5
P. 112

    After creating the variable age, let us create the following block stack for the sprite: Now,
                      click on the green flag.

                                           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
                      Follow the given steps to 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

                                        Step  4     Add another sprite named             if  touching starfish  ?  then
                                                   Diver2 under the People               play sound  pop   until done
                                                   category from the Library.
                                                   Click on the Diver2 sprite to         glide 1 secs to  random position
                                                   make it active.

                      110   Premium Edition-V

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