# Make camera only move forward and not left and right in UE5

**URL:** <https://forums.unrealengine.com/t/make-camera-only-move-forward-and-not-left-and-right-in-ue5/2249040>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [December 29, 2024, 4:27pm UTC](https://forums.unrealengine.com/t/make-camera-only-move-forward-and-not-left-and-right-in-ue5/2249040 "2024-12-29T16:27:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indexofgames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Indexofgames](https://forums.unrealengine.com/u/Indexofgames)\
**Post date:** [December 29, 2024, 4:27pm UTC](https://forums.unrealengine.com/t/make-camera-only-move-forward-and-not-left-and-right-in-ue5/2249040/1 "2024-12-29T16:27:47Z")

</div>

I am making a small project in UE5 alike to the game Starfox on the SNES. In that game the camera only move forward and not left and right or up and down with the player, the player moves around the screen instead like an arcade shooter. I have been trying to make this work but i cant figure it out and i feel like im missing something very simple. I started off with the Third Person Characters Template if that helps any.

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [December 29, 2024, 5:23pm UTC](https://forums.unrealengine.com/t/make-camera-only-move-forward-and-not-left-and-right-in-ue5/2249040/2 "2024-12-29T17:23:48Z")

</div>

Add a camera component to your character from the Components window on the top left like this:

 ![Screenshot 2024-12-29 201713](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/3/1837e7d208b43ba43bc6d0a1b811df703b1e966b.png)

Since you’re on the third person template, the third person character BP would already have a spring arm (camera boom) and a camera component (follow camera) so you can also unparent the spring arm from it by dragging the camera component over it.

Then detach it after Begin Play like this:

 ![Screenshot 2024-12-29 201650](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/7/ba784d9faaf9c001c2a594fc2f88b84c6258d209.png)

And set up Event Tick like this:

 ![Screenshot 2024-12-29 201859](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/c/a/7caf95f201e1d73bc18a0e2e7b5f81de266ca54b.png)

_(Note that the orientation might be different in your case)_

The default value of my variable named “Camera Relative Location” is the camera component’s default location which you can access from the viewport by navigating to the Details window while having the component selected.

And here’s the result:

Hope this helps! 😇

---

<div class="post-metadata">

**Author:** ![Indexofgames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Indexofgames](https://forums.unrealengine.com/u/Indexofgames)\
**Post date:** [December 29, 2024, 6:05pm UTC](https://forums.unrealengine.com/t/make-camera-only-move-forward-and-not-left-and-right-in-ue5/2249040/3 "2024-12-29T18:05:01Z")

</div>

Thank you so much you just saved me, I’ll make sure to keep this in mind for future project, big thanks and have a nice day.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 28, 2025, 6:05pm UTC](https://forums.unrealengine.com/t/make-camera-only-move-forward-and-not-left-and-right-in-ue5/2249040/4 "2025-01-28T18:05:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
