(Formerly known as GetObjectY, which is now obsolete)
int Object.Y
Gets/sets the Y co-ordinate of the object, which is the bottom of the object's image.
NOTE: This property cannot be changed while the object is moving.
NOTE: If you try to use this co-ordinate with Object.GetAtScreenXY, you will find that
the object does not get picked up. The object's sprite is drawn from the Y co-ordinate
at (Object.Y - Height) to (Object.Y - 1).
Example:
Display("Object 1's Y co-ordinate is %d.", object[1].Y);
will display the Y co-ordinate of object 1.
See Also: Object.Animating,
Object.Baseline, Object.X,
Object.SetPosition
|