int Character.z;
Gets/sets the character's current Z position. This allows the character to levitate
off the ground, whilst still retaining its normal Y co-ordinate for baseline calculations
and regions.
Normally this is set to 0 (ground-level), but you can increase it to make the character float.
Example:
while (player.z < 20) {
player.z++;
Wait(1);
}
gradually levitates the character up to 20 pixels.
See Also: Character.x,
Character.y
|