camera_set_end_script


Description

This function can be used to set a script that will be called at the end of every game frame that the camera is assigned to a visible and active view port, after everything for that view camera has been rendered. You give the unique camera ID value (as returned by the different camera_create functions) and the ID of the script to be called. The order in which scripts attached to cameras and the actual rendering of the camera view is as follows:


Syntax:

camera_set_end_script(camera_id, script)


Arguments:

Argument Description
camera_id The unique camera ID value returned when you created the camera.
script The script to run each game frame


Returns:

N/A


Example:

camera_set_end_script(view_camera[0], endCamera);

The above code sets the end script for the camera assigned to view port [0].


Back: Cameras
Next: camera_set_view_pos
© Copyright YoYo Games Ltd. 2017 All Rights Reserved