Page 76 - TP_Play_V2.1_class4
P. 76

What if you could code your own superpower in Scratch? What would
                                    your superpower be, and how would you use it to help others?




                      SETTING THE SPRITE POSITION


                  The stage is divided into different values of x and y. Each dot on the stage is made
                  up of both x and y values. The value of x gives the horizontal (left to right) location
                  of the Sprite. The value of y gives the vertical (top to bottom) location of the
                  Sprite. The centre of the stage has x and y values as 0.


                   go to x: -100  y: -34  block helps you fix the position of the sprite at the beginning of a
                  script. Sometimes due to some scripts, the sprite goes beyond the stage. This block
                  helps to bring the sprite to the desired location.

                     Recap


                         The blocks that are used to control the movement of a Sprite are known as
                        Motion blocks.

                         Looks blocks control how a Sprite appears on stage.
                          Sound blocks control sound functions. We can add music to our Scratch project
                        by using Sound blocks.

                          Events blocks actually control how the blocks in a script, will start to run, if a
                        particular action is done.
                         Events blocks control events and the starting of scripts.

                          Control blocks control the way the script runs in a project. They have looping blocks
                        which are used when the same blocks have to be repeated for a number of times.
                         The position of a sprite is given by the x and y values on the stage.




                                                         Exercise




                  A.  Tick ( ) the correct option.

                      1.  Which of the following blocks is used to control the movement of a Sprite?

                          a.  Motion                        b.  Sound                          c.  Pen

                      2.  Which of the following blocks is used to control the appearance of Sprite?

                          a.  Control                       b.  Looks                          c.  Event



                   74       Play (Ver. 2.1)-IV
   71   72   73   74   75   76   77   78   79   80   81