view_get_yport


Description

This function can be used to retrieve the y position of the given view port.


Syntax:

view_get_yport(view_port)


Arguments:

Argument Description
view_port The view port to target (0 - 7)


Returns:

Real


Example:

if view_get_yport(0) != (display_get_height() / 2) - (view_hport[0] / 2)
   {
   view_set_yport(0, (display_get_height() / 2) - (view_hport[0] / 2));
   }

The above code will check the y position of the view port[0] and if it is not where it is required to be it is set to that position.


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