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

