camera_set_view_size


Description

You can use this function to update the size of the view camera within the room. You give the unique camera ID value (as returned by the different camera_create functions) and then give the width and height (in pixels) to set the camera to.


Syntax:

camera_set_view_size(camera_id, width, height)


Arguments:

Argument Description
camera_id The unique camera ID value returned when you created the camera.
width The width of the camera view in pixels
height The height of the camera view in pixels


Returns:

N/A


Example:

camera_set_view_size(view_camera[0], view_wport[0], view_hport[0]);

The above code will set the view camera size for the camera assigned to view port[0].


Back: Cameras
Next: camera_set_view_speed
© Copyright YoYo Games Ltd. 2018 All Rights Reserved