Page 76 - CG_v2.1_flipBooks_class_3
P. 76

You have learnt about Scratch in your previous chapter. Scratch is a software which helps you
                  to create many games. There are many versions of Scratch. The latest version is Scratch 3.0.
                  You know that Scratch blocks are divided into different categories. Each block performs a

                  different function. Let us recall some previous tasks and also learn about these blocks 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 Block

                  The blocks that are used to control the movement of a Sprite are known as Motion blocks.
                  They are in blue color. 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 the 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.
                                     block is used to set the rotation style of a sprite. The
                    options to choose from are left-right, all around and don’t rotate.

                  Looks Block

                  The blocks in purple colour are Looks blocks. They control how a Sprite appears
                  on stage.





                       74    Computer Genius (V2.1)-III
   71   72   73   74   75   76   77   78   79   80   81