Page 72 - 00inner.cdr
P. 72

Changing the Sprite Position




























            The Scratch is 480 pixels wide and 360 pixels high. Everything is on a grid with two axes-x
            axis and y-axis.

            x-axis : A horizontal line that marks left and right positions; ranges from –240 (farthest
            left) to +240 (farthest right).

            y-axis : A vertical line that marks up and down positions; ranges from –180 (lowest) to
            +180 (highest).

            The default position of sprite is at the point where the x-axis and y-axis meet called origin
            (X: 0, Y: 0).

            As we move to the right from the origin, the x-value increases from 0 to 240. As we move
            left from the origin, the x-value changes from 0 to -240. Similarly, as we move up from the

            origin, the y-value increases from 0 to 180.

            As we move down from the origin, the y-value changes from 0 to -180.

                                                                 72
                                                               Computer-4
   67   68   69   70   71   72   73   74   75   76   77