Home Contents Forum Links Tip Jar
Animation Math in Lingo       

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.

 
 


Copyright © 2003 JM Harward 
 jmckell~at~jmckell~dot~com
All lingo provided on this site may be used freely for educational purposes. Not for redistribution as uncompiled code. Instructional materials may not be reproduced without permission.