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