Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 89 - 2609_Logiccode
P. 89

    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 when

                             Hat Block           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 do,
                            Stack Block          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? They fit only
                          Boolean Block          in special places, like conditions.

                                                 These blocks have rounded edges and they report information,
                                                 like a number or a string. For example: the sprite’s x position
                          Reporter Block         or score.

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

                              C-Block

                                                 These blocks have a notch at the top and flat bottom. They end
                                                 a script. Nothing can go under them. For example: the stop all
                             Cap Block           block.

                               EVENTS BLOCKS

                     Events blocks start scripts when something happens. They make the project interactive
                     by reacting to actions.

                                                                                             Scratch Coding Adventures  87

| 84 85 86 87 88 89 90 91 92 93 94 |