On Mobile - Camera Actor Horizontal Scrolling

Hi at all,

I want to create a mobile Game, with only horizontal Camera Movement.
Like a SideScroller without the Camera being attached to an Actor.
Just a Camera, which moves Horizontal til a given Range is reached.
I want to let the User only move within the given Range.
I’m using only Blueprints.
Just to make it sure, I really don’t want to know, anything about the implemented Camera of any Mobile Device.
I just want my Camera Actor to behave like a normal App, where you can Scroll horizontal just by “swiping” the finger over the Screen from left-to-right to archieve a Camera movement to the left and swiping from right-to-left to archieve a Camera movement to the right.

Information I need:

  1. How can I move the Camera horizontal by mobile Touch? (similar to Scrolling a ListView/RecyclerView in Android)
  2. How can I just let the Camera move horizontal within the Map or given Range? (See Pic’s with Grey Background)

Current Map:

Current Static Camera View (Shouldn’t go any furhter to the left):

Example Camera View (Shouldn’t go any furhter to the right):

Thanks in advance for any helpful advise.

This Tutorial: helps a lot, but it isn’t the same. After releasing the Finger, it jumps back and it is quite hard to figure out, how to adjust this given Example to an Mobile Device “Swipe”. Does exist a common solution for this? I can’t imagine, that I’m the only one with this kind of Problem.

By Mobile Touch.

It moves the camera in 2d like in Clash of Clans. For horizontal moving use Float instead of the 2d Vector.

Don’t forget to set up some Project Settings

Instead of “Start=End” it worth to try "Start += (End-Start)*6%
So, the camera does not stop suddenly.