To get the Control exactly like it works in the Construct 2 interface
You could try something like this also...Gives a lot of flexibility
In most apps, I tend to make an invisible Sprite object "Camera_Tracker" on its own layer called, give it a "Scroll to" behavior,
and this is not necessary but sometimes a Bullet Behavior also with angle set relative to motion.
Then at start of layout set "Bullet to inactive" if you added one.
Then create a Middle Mouse down event with an extra Condition
"Every Tick"
and then for the action
"Camera Tracker" Position at Mouse.x, Mouse.Y"
and then create a Middle mouse is released Event
but make sure it has DOES NOT HAVE The extra Condition " "Every Tick"
and make the Action...
"Camera Tracker" Position at Mouse.x, Mouse.Y"
You can also call the Bullet enabled function
because its invisible you cant see it and it affects nothing until
you want to scroll to it...Then all you do is Enable the Bullet Behavior
Then set the Camera_Tracker object angle to Position( Mouse.X, Mouse.Y)
and the view should begin to snap gently to the Mouse Position...
You can also ease the motion if you like by using the Bullet Behavior that you put on there also..setting the speed to what ever you like for easing
and of course do a Mouse is released function ..disabling the Bullet FX
which would make the Camera_Tracker stop exactly where it was ..thereby not scrolling the camera..
The first bit
works just like the Construct 2 interface..the second is just fancy bells and whistles..
check the CapX here....it has a setup already done...with visible Camera Tracker object so you an see what is going on...
The Bullet Behavior is also added and works to smooth the flow of the scrolling..Just a quick and rough version...to sample...
Middle Mouse scroll to CapX
For Flicking and smoother motion...try using a Physics Behaviour and apply impulse towards..Mouse.X, Mouse.Y on Mouse click/touch