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 |
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.
//Set the bounds for the camera to be the room size ex_camera_set_bounds(global._camera, 0, 0, room_width, room_height);