Page 89 - ConceptGP_C4_Fb
P. 89

Code for Step 3                                  Code for Step 4


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




                        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.











                 1.  Tick ( ) the correct option.
                    a.  In which category, the Repeat block is present?

                        (i) Looks                   (ii) Motion                        (iii) Control Flow
                    b.  How many times should a sprite move and turn to draw a square?

                        (i) 3                       (ii) 4                             (iii) 5
                    c.  Which block is used to make the sprite do something infinitely?

                        (i) Forever                 (ii) Repeat                        (iii) Repeat Until
                    d.   Which block makes the script wait for a specified number of seconds and then play the
                        next block?

                        (i) Stop                    (ii) Wait                          (iii) If Then




                                                                                         Drawing Shapes in Scratch  87
   84   85   86   87   88   89   90   91   92   93   94