ex_camera_scroll_by

Scrolls the camera by an offset relatively

Syntax

ex_camera_scroll_by(cameraHandle, scrollX, scrollY, duration)
Argument Description
cameraHandle The camera handle
scrollX The x value to scroll by
scrollY The y value to scroll by
duration The duration of the effect, in steps
Returns nothing

Description

This function will scroll the camera's offset by a x/y amount relatively. Please note, this will not set the camera's actual X/Y position. Finally note that the offset 0,0 position is the camera's view 0,0 position and not the room 0,0 position.

Example

//Scroll the camera by 20 in both directions, the effect lasting 40 steps
ex_camera_scroll_by(global._camera, 20, 20, 40);

Minimum Supported Version

exCamera 0.5.0