Page 108 - CodePilot V5.0 C4
P. 108

SCRATCH CODING

                        8                              ADVENTURES








                  PRIMARY PREVIEW                                                                                                           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
                     Coding Blocks                     Events Blocks
                     Motion Blocks                     Looks Blocks                                                                         different categories and each block has its own special function.
                     Sound Blocks                      Control Blocks
                     Sensing Blocks                    Operator Blocks
                     Pen Blocks
                     Creating Custom Sprites and Costumes                                                                                           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.

                            Hey, AIRO! How can I make my                                                                                                                 They are placed on the top of a script and start the program

                            sprite move and talk in Scratch?                                                                                        Hat Block            when something happens, like clicking the green flag.

                                                                                                                                                                         These blocks have a notch at the top and bumped bottom.
                                                                   Hi, AVINA! There are lots of block                                                                    They stack one on top of the other to tell the sprite what to
                                                                      categories in Scratch that help                                              Stack Block           do, like move, turn or say something.
                                                                   you control your sprite’s actions.
                                                                                                                                                                         These blocks have a hexagonal shape and ask a true or

                            What else can I do                                                                                                                           false question. For example: Is the sprite touching red?
                            with these blocks?                                                                                                   Boolean Block           They fit only in special places, like conditions.
                                                       With these blocks, you can bring your story                                                                       These blocks have rounded  edges  and they  report

                                                          to life! You can add music, sound effects                                                                      information, like a number or a string. For example: the
                                                       and even create your own custom sounds!                                                   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.
                            Wow, I also want to try these!
                                                                                  Then why wait? Let’s
                                                                         explore the chapter, AVINA!                                                 C-Block





                 106      CodePilot (V5.0)-IV
   103   104   105   106   107   108   109   110   111   112   113