scrollBy

open fun scrollBy(x: Float, y: Float)

Scrolls the camera over the map, shifting the center of view by the specified number of pixels in the x and y directions.

Parameters

x

Amount of pixels to scroll to in x direction

y

Amount of pixels to scroll to in y direction


open fun scrollBy(x: Float, y: Float, duration: Long)

Scrolls the camera over the map, shifting the center of view by the specified number of pixels in the x and y directions.

Parameters

x

Amount of pixels to scroll to in x direction

y

Amount of pixels to scroll to in y direction

duration

Amount of time the scrolling should take