# How to make my camera follow the player vertically but not horizontally?

**URL:** <https://forums.unrealengine.com/t/how-to-make-my-camera-follow-the-player-vertically-but-not-horizontally/235150>\
**Category:** Cinematics & Media\
**Tags:** unreal-engine\
**Created:** [June 13, 2021, 1:26am UTC](https://forums.unrealengine.com/t/how-to-make-my-camera-follow-the-player-vertically-but-not-horizontally/235150 "2021-06-13T01:26:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![JaredTherriault](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jaredtherriault/32/1194499_2.png) [@JaredTherriault](https://forums.unrealengine.com/u/JaredTherriault)\
**Post date:** [June 13, 2021, 3:43am UTC](https://forums.unrealengine.com/t/how-to-make-my-camera-follow-the-player-vertically-but-not-horizontally/235150/2 "2021-06-13T03:43:10Z")

</div>

What have you tried so far?

I’d separate the camera from your player so they’re two separate actors. Then on Tick for the camera actor, get the World Z of your player and set your Camera actor’s World Location to 0,0, PlayerWorldZ.

* * *

[iTween](https://forums.unrealengine.com/t/open-beta-procedural-on-the-fly-animation-in-ue4-itween/10472) : Free, smooth, procedural object animation  
[easyCSV](https://www.unrealengine.com/marketplace/en-US/product/b25b855096e74d088d7553ccbe4072f2) : Read data from any CSV and put them in an easy-to-access string map!  
[Runtime DataTable](https://www.unrealengine.com/marketplace/en-US/product/4c7c4f8d523f4c90b2e26d23502c526c) : Import and export game data to and from CSV or Google Sheets while your game is running!

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-make-my-camera-follow-the-player-vertically-but-not-horizontally/235150)._
