Page 66 - 2616_V iCode_C-3
P. 66

You have learnt about Scratch in the previous chapter. Scratch is a software which
                  helps you 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


                  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 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 Blocks


                  The blocks that are used to control the movement of a Sprite are known as Motion
                  blocks. They are in blue 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 a clockwise direction by the given


                    degrees and                         block turns the Sprite in an 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 positions 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.






                       64    Premium Edition-III
   61   62   63   64   65   66   67   68   69   70   71