Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 98 - 2606_PlugGPT_C5_Flipbook
P. 98

    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

                      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               play sound  pop   until done

                                                   category from the Library.            glide 1 secs to  random position
                                                   Click on the Diver2 sprite to
                                                   make it active.

                       96   Premium Edition-V

| 93 94 95 96 97 98 99 100 101 102 103 |