Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 110 - 2607_Trackpad_Pro_5.1_flipbook_C4
P. 110

    Code for Step 2                               Code for Step 3

                                 when     clicked
                                                                               when    clicked
                                 glide  1  secs to x: 100 y:  50
                                                                              move  30  steps
                                  repeat  10
                                                                               say  Hello Everyone!  for  2  seconds
                                   wait  1  seconds
                                                                              move  30  steps
                                   change size by -10
                                                                               say  I have seen a flying Dragon  for  2  seconds

                                        What if you  could  use Scratch to  create  a sports  competition  game? What
                                        sports would be included, and how would players train and compete to become
                                        champions?

                             Hashtag

                           #Repeat: To say, write or do something again or more than once

                           #Degree: A measurement of temperature or angle

                           REVISIT

                        ▶  Pen blocks provide a trail for the sprite and give instructions to change.

                        ▶  We can draw square, rectangle and other shapes using pen block.
                        ▶  Repeat block is used when we want to use a block more than once.
                        ▶  We can draw polygons using repeat block.
                        ▶  Forever block is used to make the sprite do something infinitely (nonstop) until a command is
                          passed over it by the user.
                        ▶  We can work with more than one sprite together in Scratch.

                      108   Premium Edition-IV

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