ex_camera_set_bounds

Sets the bounds for the camera

Syntax

ex_camera_set_bounds(cameraHandle, x, y, width, height)
Argument Description
cameraHandle The camera handle
x The X bound
y The Y bound
width The width of the bounds
height The height of the bounds
Returns nothing

Description

This function allows you to set a boundary for the camera, the camera will not go past this area. This function uses absolute coordinates of the room. Also note that you will need to take into account any offset your camera might have.

Example

//Set the bounds for the camera to be the room size
ex_camera_set_bounds(global._camera, 0, 0, room_width, room_height);

Minimum Supported Version

exCamera 1.0.2