camera_get_view_border_y


Description

This function can be used to retrieve the border value for object/instance following of the given camera along the y axis (vertical border). The return value will be in pixels.


Syntax:

camera_get_view_border_y(camera_id)


Arguments:

Argument Description
camera_id The unique camera ID value returned when you created the camera


Returns:

Real


Example:

var xb = camera_get_view_border_x(view_camera[0]);
var yb = camera_get_view_border_y(view_camera[0]);
if xb != 200 || yb != 200
   {
   camera_set_view_border(view_camera[0], 200, 200);
   }

The above code retrieves the xborder and yborder values of the camera assigned to view port[0] and then checks this to see if it matches the given value. If it does not then the view camera is set to the given value.


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