|
Stage Coordinate System

Stage coordinates
If you set the loch
of a sprite to zero, it will be positioned at the left edge of the stage.
If locv is
zero, the sprite is at the top edge. So the
top left corner of the stage has coordinates (0,0), expressed
as (loch,
locv).
As the value of loch
increases, the sprite moves to the right; as locv
increases, the sprite moves down. The property
inspector shows what the current loch
and locv values
of a sprite are, in the boxes labeled "X" and "Y".
A sprite can be positioned off the stage
by setting the loch
or locv less
than zero, or greater than the dimensions of the stage.
The standard notation for coordinate systems is to use
'x' for the horizontal axis and 'y' for the vertical axis.
This convention is followed in the tutorial, so that variables called
'x' are associated with loch and 'y' variables
with locv.
|
|