GetCameraY
From Spheriki
Gets the camera's current Y position.
Contents |
[edit]
Usage
number GetCameraY();
[edit]
Examples
var TheY = GetCameraY(); Abort(TheY + "\n");
Stores the camera's Y position in a variable, then aborts with the value as a message.
if (GetCameraY() <= 300) SetCameraY(GetCameraY()+1);
When set as a render script or delay script, this scrolls the camera to the bottom until it reached the destination of 300 pixels.
[edit]
Notes
The camera Y is based on the center of the camera.
[edit]
See also
- GetCameraX()
- SetCameraX()

