Page 65 - Touchcode_C3_Flipbook
P. 65

BLOCKS
                 There are mainly ten types of blocks 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 Block
                 The blocks that are used to control the movement of a Sprite are known as Motion
                 blocks. They are blue in color. For example, the 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                       . This will move the sprite 30 steps
                 back on the stage.


                 Looks Block

                 The blocks that are used to add speech and thought bubbles to the sprite are called
                 Looks Block. 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                          .

                 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
                                       .


                 Events Block
                 This is the topmost block. It helps to run the script on the stage

                 as it controls the starting of scripts. 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.



                                                                                            Coding Corner        63
   60   61   62   63   64   65   66   67   68   69   70