Page 102 - 2620_Birla Open Mind C-3
P. 102

BLOCKS


              Blocks are the codes or commands used to create a program in Scratch. It looks like a puzzle
              piece and each block connects with the other block 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 colour. For example, the motion block is used to move a sprite.

              Here by default, 10 is the number of steps that the sprite will move forward. You can change

              the number of steps  move 10  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 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  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

              Events Block


              This is the topmost block means it is placed at the top of the script. It helps
              to run the script on the stage as it controls the starting of scripts. It gives you     when     clicked
              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:






                                                                                              Click on a sprite
                                                                                              to add it to your   2
                                                                                              project.


                       Click on the Choose
                   1
                       a Sprite option.


                  100  Premium Edition-III
   97   98   99   100   101   102   103   104   105   106   107