YesNoOk
avatar

CameraPos (Triggers) 1.1b Exclusive (Read 3402 times)

Started by JustNoPoint, October 28, 2015, 03:26:06 pm
Share this topic:
CameraPos (Triggers) 1.1b Exclusive
#1  October 28, 2015, 03:26:06 pm
  • ******
    • www.justnopoint.com/
Gets the value of the camera's position relative to the stage.

Format:
CameraPos [component]

Arguments:
[component]
X, Y

Return type:
float

Error conditions:
none

Details:
The home position of the camera is 0, 0. The value of "CameraPos X" increases as the camera moves to the right. The value of "CameraPos Y" decreases as the camera moves upwards.

The units of the position returned is in the coordspace of the player.

Example:

Code:
trigger1 = CameraPos X >= 0
  True when the camera is to the left of the center of the stage.