# Locking Camera Movement to Y Axis, But Stays in Place for X Axis

**URL:** <https://forums.unrealengine.com/t/locking-camera-movement-to-y-axis-but-stays-in-place-for-x-axis/418137>\
**Category:** Asset Creation\
**Tags:** sidescroller, unreal-engine, question\
**Created:** [February 23, 2018, 10:17am UTC](https://forums.unrealengine.com/t/locking-camera-movement-to-y-axis-but-stays-in-place-for-x-axis/418137 "2018-02-23T10:17:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Atomic\_Hog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Atomic\_Hog](https://forums.unrealengine.com/u/Atomic_Hog)\
**Post date:** [February 23, 2018, 10:17am UTC](https://forums.unrealengine.com/t/locking-camera-movement-to-y-axis-but-stays-in-place-for-x-axis/418137/1 "2018-02-23T10:17:21Z")

</div>

I’m experimenting with a 2.5d game using blueprints and paper2d sprites. I want the camera to move along the Y axis, but stay in place as the player moves on the X axis. For reference, I have a spring arm attached to the player character. It seems like a simple thing to solve, but I’m not sure if I need to make a blueprint or if there’s an option in the details panel I need to mess with.

---

<div class="post-metadata">

**Author:** ![DavidOConnor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidoconnor/32/978533_2.png) [@DavidOConnor](https://forums.unrealengine.com/u/DavidOConnor)\
**Post date:** [February 23, 2018, 10:20am UTC](https://forums.unrealengine.com/t/locking-camera-movement-to-y-axis-but-stays-in-place-for-x-axis/418137/2 "2018-02-23T10:20:56Z")

</div>

… the first thing I’d try is to check the Spring Arm component settings

see if turning on/off… Inherit Pitch / Yaw / Roll serves your purpose

---

<div class="post-metadata">

**Author:** ![Atomic\_Hog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Atomic\_Hog](https://forums.unrealengine.com/u/Atomic_Hog)\
**Post date:** [February 23, 2018, 10:46pm UTC](https://forums.unrealengine.com/t/locking-camera-movement-to-y-axis-but-stays-in-place-for-x-axis/418137/3 "2018-02-23T22:46:19Z")

</div>

I did already. Doesn’t seem do anything, but unticking yaw flips the camera around.

 ![231825-ss-3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/b/b1b79331c8c977fd17f69fe0cffefc4f3d8a0226.jpeg)

 ![231826-ss-4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/2/aa2935e1f558f07d5dd644dc43e54c7a4d616e19.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_109b7f19](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_109b7f19](https://forums.unrealengine.com/u/anonymous_user_109b7f19)\
**Post date:** [February 24, 2018, 3:50pm UTC](https://forums.unrealengine.com/t/locking-camera-movement-to-y-axis-but-stays-in-place-for-x-axis/418137/4 "2018-02-24T15:50:22Z")

</div>

i did this to lock my spectator camera to the Z plane, this might help,  
i also made a small function to zoom in and out, but i plan on changing this later

 ![231852-locktoplane.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/c/5cc625bc5c748623c3004542de1cef1ba87bbd14.png)
