# How do i make it so that if i or my enemy moves left or right the camera moves to the opposite direction

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-it-so-that-if-i-or-my-enemy-moves-left-or-right-the-camera-moves-to-the-opposite-direction/543471>\
**Category:** Character & Animation\
**Tags:** unreal-engine, UE4-27, question\
**Created:** [April 29, 2022, 9:29am UTC](https://forums.unrealengine.com/t/how-do-i-make-it-so-that-if-i-or-my-enemy-moves-left-or-right-the-camera-moves-to-the-opposite-direction/543471 "2022-04-29T09:29:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![La\_Shnitzel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@La\_Shnitzel](https://forums.unrealengine.com/u/La_Shnitzel)\
**Post date:** [April 29, 2022, 9:29am UTC](https://forums.unrealengine.com/t/how-do-i-make-it-so-that-if-i-or-my-enemy-moves-left-or-right-the-camera-moves-to-the-opposite-direction/543471/1 "2022-04-29T09:29:05Z")

</div>

basically camera lag but the camera doesn’t get centered when i stop moving  
basically lock on but for Hack and Slash games  
which i am making a Hack and Slash

---

<div class="post-metadata">

**Author:** ![yukiflof](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yukiflof](https://forums.unrealengine.com/u/yukiflof)\
**Post date:** [April 23, 2026, 4:32pm UTC](https://forums.unrealengine.com/t/how-do-i-make-it-so-that-if-i-or-my-enemy-moves-left-or-right-the-camera-moves-to-the-opposite-direction/543471/2 "2026-04-23T16:32:47Z")

</div>

did you figure it out ?
