ex_camera_scroll_to(cameraHandle, scrollX, scrollY, duration)
| Argument | Description |
|---|---|
| cameraHandle | The camera handle |
| scrollX | The x value to scroll to |
| scrollY | The y value to scroll to |
| duration | The duration of the effect, in steps |
This function will scroll the camera's offset to a x/y amount absolutely. 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 to position [20, 20], the effect lasting 40 steps ex_camera_scroll_to(global._camera, 20, 20, 40);