Page 82 - TP-Play_V-2.0_Book-5
P. 82

CREATING A GAME

              09                                                                         IN SCRATCH















                  Your Aim

                  to learn about:
                       Block Shapes in Scratch                       Sensing Blocks
                        Variables                                       Conditional Blocks

                          Creating a Game


            As you must have observed, the blocks in Scratch  are  in different  shapes and

            colours. They are used for various purpose like creating shapes and scenes. In this
            chapter, we will learn about the various blocks to create  a game.

                BLOCK SHAPES IN SCRATCH

            Block shapes can be divided into six types of shapes. They are: Hat, Stack, Boolean,
            Reporter, C and Cap.

            Hat Blocks

            They are called hat blocks as they look like a hat. We wear a hat
            on our head, so the hat always comes on the top. Similarly, hat                     when     clicked

            blocks always come at the top of a script as they start a script.
            This means that you cannot place any blocks above them.
            Stack Blocks


            Stack blocks are the most used blocks in Scratch.
                                                                              play sound Meow        until done
            They  perform the  main commands. Stack  blocks
            have a bowl shape cut on the top and a bump at
            the bottom. This makes it easier to stack other blocks above and below them.

            Boolean Blocks

            Boolean blocks  are condition blocks which  return the values
                                                                                                     or
            “true” or “false” or the number “0” or “1” depending on how they
            are used in the script.

             82       Play (Ver. 2.0)-V
   77   78   79   80   81   82   83   84   85   86   87