# Side scroller game move camera by mouse

**URL:** <https://forums.unrealengine.com/t/side-scroller-game-move-camera-by-mouse/470577>\
**Category:** Cinematics & Media\
**Tags:** side-scroller, unreal-engine, question\
**Created:** [August 31, 2020, 1:29am UTC](https://forums.unrealengine.com/t/side-scroller-game-move-camera-by-mouse/470577 "2020-08-31T01:29:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e54cc7cb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e54cc7cb](https://forums.unrealengine.com/u/anonymous_user_e54cc7cb)\
**Post date:** [August 31, 2020, 1:29am UTC](https://forums.unrealengine.com/t/side-scroller-game-move-camera-by-mouse/470577/1 "2020-08-31T01:29:14Z")

</div>

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

 ![311878-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/4/f74c5d88fbf74c2063dde48d60143f8ce6664947.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 31, 2020, 6:54am UTC](https://forums.unrealengine.com/t/side-scroller-game-move-camera-by-mouse/470577/2 "2020-08-31T06:54:07Z")

</div>

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

 ![311890-annotation-2020-08-31-074942.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/f/3dfec4f9351c246569b225d715117c3876ab3186.jpeg)

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/2853f4442e46460045951126986b4d79154989ba.gif)](https://gyazo.com/a8a6d8998b98e37a694b4c975c4d2cbd)

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](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/5/da52e8bd53341f9b828c9c20108fcc829c6c0cf3.jpeg)

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