Make a sprite object and call it "camera".
Make two global variables, one called "CameraX" and the other called "CameraY"
On mouse click
--- Set "camerax.variable" to Mouse.X
--- Set "cameray.variable" to Mouse.Y
Every tick
--- Scroll to object "camera"
--- Set camera.x to lerp(camera.x,camerax.variable,1-0.2^dt)
--- Set camera.y to lerp(camera.y,cameray.variable,1-0.2^dt)
(You can change the 0.2 in the end part to make it scroll faster or slower - 0.1 is faster 0.9 is slower - the number must be between 0 and 1)
You can also set the camera to be opacity 0 so you can't see it.
~Sol