Page 47 - TP_Modular_V2.1_Class5
P. 47

BLOCKS

                 There are mainly nine types of block categories available in Scratch 3.0. You will
                 now learn about some commonly used blocks. Blocks are the code or command
                 used to create a program in Scratch.  It looks  like  puzzle piece and each block
                 connects with other blocks to perform a task.

                 Motion Blocks

                 The blocks that are used to control the movement of a sprite are known as Motion
                 blocks. They are blue in colour. For example, the  move         10 steps  motion block is used to
                 move a sprite.

                 Here, 10 is the number of steps that the sprite will move forward. You can change
                 the number of steps. To make the sprite move backward, give a minus (-) sign
                 before the number as shown below  move            -30 steps . This will move the sprite 30 steps
                 back on the stage.

                 Looks Blocks

                 The blocks that are used to add speech and thought bubbles to the sprite are
                 called Looks Blocks. They are purple in colour.

                 For example, you want to add a speech bubble to the sprite for 2 seconds with a
                 message ‘Hello!’ as shown  say Hello!      for 2  seconds.
                 You can change the message  by clicking on the message  text box and typing

                 your own message. You can also change the time by clicking on the time text box
                 think Hmm...  for 2  seconds.
                 Blocks in Looks category are also used to change appearance of a sprite.

                 Events Blocks

                 Event blocks are used to manage the events which trigger the
                                                                                                    when      clicked
                 movement of the sprite. It helps to run the script on the stage. It

                 gives you the control of all the blocks as without an event block
                 no program will run.
                 To run the script, you have to click on the Go button before the other blocks.

                    ADDING A SPRITE

                 When you open Scratch, the default sprite1 is
                 the cat. The location of the sprite cat is at the
                 centre of the stage. Let us add another sprite
                 to the stage.

                 To add a sprite, follow the given steps:
                                                                                                                   1
                 Step 1   Click on the Choose a Sprite tool in
                          the Sprites Info Pane.

                                                                                     Introduction to Scratch      45
   42   43   44   45   46   47   48   49   50   51   52