Page 55 - modular4.0
P. 55

Chapter Profile
                                                                                         Chapter Profile
                  6                                                               Block Categories

                                                                                       Setting the Sprite Position



                           More Blocks in


                                     Scratch













                 You know that Scratch blocks are divided into different categories. Each block performs a
                 different function. Let's learn more blocks of Scratch in detail.


                        BLOCK CATEGORIES

                 The blocks in Sprite 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 Blocks

                 The blocks that are used to control the movement of a Sprite are known as Motion blocks.
                 They are blue in colour. Some of the commonly used motion blocks are:

                                   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                      .


                                       block lets the Sprite turn in clockwise direction by the given degrees

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

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

                     Use                       to tell the Sprite to follow  one of the two given  options:  the

                    mouse-pointer or a random position.

                                      block makes the Sprite flip over if it touches the edge of the screen.








                                                                                              More Blocks in Scratch  53
   50   51   52   53   54   55   56   57   58   59   60