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 |
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.
//Scroll the camera by 20 in both directions, the effect lasting 40 steps ex_camera_scroll_by(global._camera, 20, 20, 40);