# Rolling ball game camera issue

**URL:** <https://forums.unrealengine.com/t/rolling-ball-game-camera-issue/331377>\
**Category:** Blueprint\
**Tags:** ball, rolling-ball, unreal-engine, UE4, Blueprint, question\
**Created:** [September 7, 2015, 7:52pm UTC](https://forums.unrealengine.com/t/rolling-ball-game-camera-issue/331377 "2015-09-07T19:52:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Walid\_Chekkouri](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/walid_chekkouri/32/1194685_2.png) [@Walid\_Chekkouri](https://forums.unrealengine.com/u/Walid_Chekkouri)\
**Post date:** [September 7, 2015, 7:52pm UTC](https://forums.unrealengine.com/t/rolling-ball-game-camera-issue/331377/1 "2015-09-07T19:52:58Z")

</div>

I’m making a rolling ball game that looks like the popular game Marble Ball. the only issue i have is that since i’m making it from the rolling ball template available , the camera is following the ball but i want it to be like the one in 3rd person games when theball rotates left and right i need the camera to follow it.

---

<div class="post-metadata">

**Author:** ![mamoniem](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mamoniem/32/1194698_2.png) [@mamoniem](https://forums.unrealengine.com/u/mamoniem)\
**Post date:** [September 8, 2015, 2:51am UTC](https://forums.unrealengine.com/t/rolling-ball-game-camera-issue/331377/2 "2015-09-08T02:51:26Z")

</div>

Okay,…I don’t like step by step tutorials, but it seems you really in need for that…so I’ll try to give as much details as possible, so you can pass this obstacle.

1. You need to add some new inputs for the mouse, as this roll-ball example have none of them. If you don’t know how, then go to project **Settings → Inputs**. And there under the **“Axis Mapping”** add two new variables. **“turn”** and set it to **MouseX** with value of **1** , and **“Lookup”** and set it to **MouseY** , with the value of **-1**.

 ![57632-screen+shot+2015-09-08+at+10.09.33+am.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/6/956f43f53b4c3c0e1a326afe206dc04d4d6d821e.png)

1. Go to the ball blueprint, and add actions to be done with those new inputs.

 ![57633-screen+shot+2015-09-08+at+10.09.19+am.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/4/784c14f204bba9da946287791f0d59cbcc8d9828.png)

1. On the blueprint to, press the **“Class settings”** because we need an adjustment here

![57634-screen+shot+2015-09-08+at+10.10.32+am.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/d/ccd7e58c7cfb678b9f00c7db0bbcf4502f2ea0e7.png)

1. The previouss tep will active some options at the details panel, under the **“Class Options”** , set it to **“Character”** rather than “Pawn”

![57635-screen+shot+2015-09-08+at+10.10.37+am.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/9/2292f746daaf85dc201bb5dca015bf15ac5cab74.png)

1. Last thing, select the “Spring Arm” component, that have been added after switching to “Character” blueprint"

![57636-screen+shot+2015-09-08+at+10.15.42+am.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/1/c7111d3df1a93cbfeef8eddedda387fddc30ca27.png)

To be continued with a comment, the answer has a maximum attachments count.

-m

---

<div class="post-metadata">

**Author:** ![mamoniem](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mamoniem/32/1194698_2.png) [@mamoniem](https://forums.unrealengine.com/u/mamoniem)\
**Post date:** [September 8, 2015, 2:53am UTC](https://forums.unrealengine.com/t/rolling-ball-game-camera-issue/331377/3 "2015-09-08T02:53:29Z")

</div>

1. In the options of it, set the “Do Collision Test” to be able to not get into walls, and of course set the “Use Pawn Control Rotation”

![57637-screen+shot+2015-09-08+at+10.16.32+am.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/3/cc3a4a633b260116c8a3f2e285537dddada78e1e.png)

1. Now play!

![57638-screen+shot+9000.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/4/fb4973f7487941cba62e726c71e084404adc1fca.gif)

-m

---

<div class="post-metadata">

**Author:** ![Walid\_Chekkouri](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/walid_chekkouri/32/1194685_2.png) [@Walid\_Chekkouri](https://forums.unrealengine.com/u/Walid_Chekkouri)\
**Post date:** [September 8, 2015, 10:19am UTC](https://forums.unrealengine.com/t/rolling-ball-game-camera-issue/331377/4 "2015-09-08T10:19:12Z")

</div>

Thank’s a lot bro i was needed it so badly.

---

<div class="post-metadata">

**Author:** ![mamoniem](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mamoniem/32/1194698_2.png) [@mamoniem](https://forums.unrealengine.com/u/mamoniem)\
**Post date:** [September 8, 2015, 11:20am UTC](https://forums.unrealengine.com/t/rolling-ball-game-camera-issue/331377/5 "2015-09-08T11:20:41Z")

</div>

Good luck 😉

-m

---

<div class="post-metadata">

**Author:** ![Timothy\_LeBlanc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Timothy\_LeBlanc](https://forums.unrealengine.com/u/Timothy_LeBlanc)\
**Post date:** [April 23, 2018, 10:37pm UTC](https://forums.unrealengine.com/t/rolling-ball-game-camera-issue/331377/6 "2018-04-23T22:37:15Z")

</div>

I just read this and it helped a ton. Is there a way I can make my character move in the facing direction instead of the same direction?

---

<div class="post-metadata">

**Author:** ![EvilCleric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilCleric](https://forums.unrealengine.com/u/EvilCleric)\
**Post date:** [April 24, 2018, 11:15am UTC](https://forums.unrealengine.com/t/rolling-ball-game-camera-issue/331377/7 "2018-04-24T11:15:56Z")

</div>

Check this link: [link text](https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/1464835-how-to-sync-controls-with-camera-in-rolling-ball-templete)

Note that it all depends on how you made the camera system.

---

<div class="post-metadata">

**Author:** ![Timothy\_LeBlanc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Timothy\_LeBlanc](https://forums.unrealengine.com/u/Timothy_LeBlanc)\
**Post date:** [April 24, 2018, 12:20pm UTC](https://forums.unrealengine.com/t/rolling-ball-game-camera-issue/331377/8 "2018-04-24T12:20:25Z")

</div>

Thanks! This helped a lot.

---

<div class="post-metadata">

**Author:** ![Dave\_Lightman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dave\_Lightman](https://forums.unrealengine.com/u/Dave_Lightman)\
**Post date:** [February 15, 2019, 2:47pm UTC](https://forums.unrealengine.com/t/rolling-ball-game-camera-issue/331377/9 "2019-02-15T14:47:11Z")

</div>

So the camera does work (yay!) but the controls are no longer aligned to the camera… How to fix this? (Yes I did change it from Pawn to Actor)
