Page 109 - CodePilot V5.0 C4
P. 109

BRIDGE BACK

                  Discuss the working of the given icons:


                  (a)                                                  (b)





                 You were introduced to Scratch and its features in the previous class. In this chapter,
                 you will learn about different types of blocks in Scratch. Blocks are organised into
                 different categories and each block has its own special function.






                        CODING BLOCKS


                 In Scratch, coding blocks look like puzzle pieces that fit together to make a program.
                 There are six main types of blocks which have a special job to help create animations.


                 Let’s learn about them from the table given below:

                           Block                                           Function

                                             These blocks  have a rounded  top  and bumped  bottom.

                                             They are placed on the top of a script and start the program

                         Hat Block           when something happens, like clicking the green flag.

                                             These blocks have a notch at the top and bumped bottom.
                                             They stack one on top of the other to tell the sprite what to
                       Stack Block           do, like move, turn or say something.

                                             These blocks have a hexagonal shape and ask a true or

                                             false question. For example: Is the sprite touching red?
                      Boolean Block          They fit only in special places, like conditions.


                                             These blocks have rounded  edges  and they  report

                                             information, like a number or a string. For example: the
                     Reporter Block          sprite’s x position or score.


                                             These blocks are C-shaped. They hold other blocks inside
                                             them and repeat or control how they run.




                          C-Block





                                                                                        Scratch Coding Adventures  107
   104   105   106   107   108   109   110   111   112   113   114