GetCameraY
From Spheriki
Gets the camera's current Y position.
Contents |
Usage
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.
Notes
The camera Y is based on the center of the camera.
See also
- GetCameraX()
- SetCameraX()