ex_camera_zoom

Zooms the camera in and out

Syntax

ex_camera_zoom(cameraHandle, scale, duration)
Argument Description
cameraHandle The camera handle
scale The scale value, 100 is default
duration The duration of the effect, in steps
Returns nothing

Description

This function will perform a zoom in or out effect. Set the scale value to 100 in order to reset the zoom.

Example

//Zoom in the camera view to 60% in 20 steps
ex_camera_zoom(global._camera, 60, 20);

//Zoom out the camera view to 120% in 20 steps
ex_camera_zoom(global._camera, 120, 20);

Minimum Supported Version

exCamera 0.5.0