ex_camera_set_position

Sets the camera's position

Syntax

ex_camera_set_position(cameraHandle, x, y)
Argument Description
cameraHandle The camera handle
x The camera's X position
y The camera's Y position
Returns nothing

Description

This function will set the camera's x and y position manually. This will not set the scroll offset rather than the actual x, y positions of the camera object. This function will not work if there's an active tracking object that the camera already follows.

Example

//Set the camera's x, y position to 300, 400
ex_camera_set_position(global._camera, 300, 400);

Minimum Supported Version

exCamera 0.5.0