# Camera setup for Beat-Em Ups?

**URL:** <https://forums.unrealengine.com/t/camera-setup-for-beat-em-ups/299041>\
**Category:** Cinematics & Media\
**Tags:** unreal-engine, follow, UE4, Blueprint, question\
**Created:** [November 15, 2014, 6:30pm UTC](https://forums.unrealengine.com/t/camera-setup-for-beat-em-ups/299041 "2014-11-15T18:30:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![InFraudemVero\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@InFraudemVero\_1](https://forums.unrealengine.com/u/InFraudemVero_1)\
**Post date:** [November 15, 2014, 6:30pm UTC](https://forums.unrealengine.com/t/camera-setup-for-beat-em-ups/299041/1 "2014-11-15T18:30:45Z")

</div>

I’m presently working on a project that is very similar to Devil May Cry (combo-based beat’em up with platforming elements), but I’m having some issues with camera angle.

The default camera set up for third-person is nigh-unusable for moving platforms. It matches your movement so the second you land on a moving platform the entire world seems to move around you. I’d much rather the camera have a range of distance it can be from the character, translating if the character were to exceed it, but only rotating if the distance falls below the maximum. Changing the height and angle of the camera has been really difficult too. By default it looks directly at the small of the character’s back, but a game like this really calls for something up and to the side. I’ve been messing with camera and camera boom settings, but with little success.

Anything you guys can offer will be much appreciated.

Thanks a ton in advance!

---

<div class="post-metadata">

**Author:** ![ScottSpadea](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scottspadea/32/1194682_2.png) [@ScottSpadea](https://forums.unrealengine.com/u/ScottSpadea)\
**Post date:** [November 15, 2014, 8:27pm UTC](https://forums.unrealengine.com/t/camera-setup-for-beat-em-ups/299041/2 "2014-11-15T20:27:29Z")

</div>

sounds like you want a camera on a leash.

make a blueprint of the type Actor, add a Camera component, drag this blueprint into the world, have the level blueprint eventBeginPlay cause a transition to that camera by  
GetPlayerController, drag off the ReturnValue and search for SetViewTargetWithBlend node.

inside the custom actor blueprint you added the camera to, do this:

 ![21297-cameraonleash.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/3/353834b7d079a8392cea30c41dc6e3e25c23a00f.jpeg)

and inside the level blueprint do this:

![21321-cameraleashlvlbp.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/d/eddfec531604fc03f4b315c1ec2a31d123387eab.jpeg)

---

<div class="post-metadata">

**Author:** ![InFraudemVero\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@InFraudemVero\_1](https://forums.unrealengine.com/u/InFraudemVero_1)\
**Post date:** [November 15, 2014, 11:00pm UTC](https://forums.unrealengine.com/t/camera-setup-for-beat-em-ups/299041/3 "2014-11-15T23:00:45Z")

</div>

That looks pretty legit, if not completely robust. I’m trying to put it together now but I can’t seem to summon the \>Target Relative Location/Rotation\> components; the two bottom components immediately after Camera.

I’m in the Level Blueprint right now, so maybe I’m in the wrong place? Maybe I misunderstood ‘make a blueprint of an actor’?

 ![21314-leashedattempt1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/6/386fffd573a93c9d46a4d79188f7dfcb7036a271.jpeg)

---

<div class="post-metadata">

**Author:** ![ScottSpadea](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scottspadea/32/1194682_2.png) [@ScottSpadea](https://forums.unrealengine.com/u/ScottSpadea)\
**Post date:** [November 27, 2014, 9:15pm UTC](https://forums.unrealengine.com/t/camera-setup-for-beat-em-ups/299041/4 "2014-11-27T21:15:25Z")

</div>

once you have a camera component added to your actor in it’s component tab, from the event graph variable list, you can drag and drop it into the event graph, choose get, then it will place a reference to the camera in the graph. from that camera node, you can drag off and search for those relative location/rotation variables.

they don’t show up by default because they are member variables of the camera, so you need to ask a reference to the camera for that information.

---

<div class="post-metadata">

**Author:** ![TheGrimOfCrazy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheGrimOfCrazy](https://forums.unrealengine.com/u/TheGrimOfCrazy)\
**Post date:** [October 12, 2015, 4:52am UTC](https://forums.unrealengine.com/t/camera-setup-for-beat-em-ups/299041/5 "2015-10-12T04:52:21Z")

</div>

Old but unresolved question. I am also doing this and have done everything as shown yet the camera is stuck inside my players head?

[http://puu.sh/kHd5N/a6644ba844.png](http://puu.sh/kHd5N/a6644ba844.png)

[http://puu.sh/kHd8B/d81d997b53.png](http://puu.sh/kHd8B/d81d997b53.png)

---

<div class="post-metadata">

**Author:** ![TheGrimOfCrazy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheGrimOfCrazy](https://forums.unrealengine.com/u/TheGrimOfCrazy)\
**Post date:** [October 12, 2015, 5:44am UTC](https://forums.unrealengine.com/t/camera-setup-for-beat-em-ups/299041/6 "2015-10-12T05:44:41Z")

</div>

Ok just learned how to reference camera. It is now this:

[http://puu.sh/kHftu/7111b90f39.png](http://puu.sh/kHftu/7111b90f39.png)

But now the camera turns and points up in aa weird direction when I start. And It seems like I’m now controlling the camera and not the player

Edit: The camera actually seems to have a mind of its own. I can’t see my player and when I start the camera just moves to whatever location facing nothing.

---

<div class="post-metadata">

**Author:** ![TheGrimOfCrazy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheGrimOfCrazy](https://forums.unrealengine.com/u/TheGrimOfCrazy)\
**Post date:** [October 12, 2015, 1:12pm UTC](https://forums.unrealengine.com/t/camera-setup-for-beat-em-ups/299041/7 "2015-10-12T13:12:41Z")

</div>

I fixed it. I had some things flipped

[http://puu.sh/kHwgx/233c83f757.png](http://puu.sh/kHwgx/233c83f757.png)

. If anyone needs it heres a reorganized version:

Now to make the controls relative to the camera.

---

<div class="post-metadata">

**Author:** ![RethmaeTheDragon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RethmaeTheDragon](https://forums.unrealengine.com/u/RethmaeTheDragon)\
**Post date:** [June 23, 2018, 1:57am UTC](https://forums.unrealengine.com/t/camera-setup-for-beat-em-ups/299041/8 "2018-06-23T01:57:15Z")

</div>

Excuse me, how do I make the controls relative to the camera? Because i’m having difficulty with the setup I have.
