Side scroller game move camera by mouse

I am new to UE and it seems like a simple question but I could not find anything useful online. I am trying to add a functionality where you can move mouse cursor (up, down, left, right) and it will move the camera (up, down, left, right).

Thank you

You’re adding Rotation. You will want to add location instead:

Image from Gyazo

Above, you can right click pins and Split them to see their individual components, here XYZ.


Do note that the camera is still attached to the character so it may not work as you expect. It can be, optionally, detached by selecting the springarm in the component list and setting Location Type to World a.k.a. Absolute.

311901-annotation-2020-08-31-075214.jpg

Then, rather than Adding Local Offset, you’d Add World Offset instead.