Page 90 - 2422_C4_Flipbook
P. 90

SCRATCH COMPONENTS

                  Look at the Scratch screen and its components.

                    Title Bar                                                Menu Bar




                                                  Tabs           Go Button         Stop Button

                                                                                             Stage Area
                   Block
                   Menu                                      Script                                          Backdrop


                                                                                                Sprite



                                                       Coding Area



                                                                                   Sprites Info Pane





                         BLOCK CATEGORIES

                  The blocks in Scratch are divided into different categories based on their functions. In most of
                  these blocks, you can change the value in the block to suit your script.




                              Motion  Looks  Sound   Events  Control  Sensing  Operators  Variables  My Blocks

                       Motion Block
                  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. The blocks that are
                  used to control the movement of a Sprite are known as Motion blocks. These are blue in
                  colour. Some of the commonly used motion blocks are:

                     move  10 steps  block lets the Sprite move forward (in the direction it is facing) the number
                    of steps given in the text box in the block. When we write the value with a minus (–) sign, the

                    Sprite moves backward, e.g., move – 10 steps  move       -10 steps .

                     turn    15  degrees  block lets the Sprite turn in clockwise direction by the given degrees and
                     turn    15  degrees  block turns Sprite in anti-clockwise direction by the given degrees.

                      To make the Sprite jump to a new position on the stage, use  go  to  x: 0      y: 0  block. This
                    block gives the x and y position of the Sprite on the stage.


                      Use  go to mouse-pointer   to  tell the Sprite  to follow  one of the two given options:  the
                    mouse-pointer or a random position.

                  88    Premium Edition-IV
   85   86   87   88   89   90   91   92   93   94   95