Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 70 - 2616_V iCode_C-3
P. 70

    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.

                                            block helps you to 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.

                      Programs in Scratch

                      Arrange the blocks to create the following scripts for
                      the cat and the ball Sprites, and then run the script.

                           68    Premium Edition-III

| 65 66 67 68 69 70 71 72 73 74 75 |