# Is there any way to apply a lag to a Camera?

**URL:** <https://forums.unrealengine.com/t/is-there-any-way-to-apply-a-lag-to-a-camera/280320>\
**Category:** Cinematics & Media\
**Tags:** side-scroller, lag, unreal-engine, follow, question, Blueprint\
**Created:** [April 11, 2014, 3:31pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-apply-a-lag-to-a-camera/280320 "2014-04-11T15:31:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke\_di\_Rago](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Luke\_di\_Rago](https://forums.unrealengine.com/u/Luke_di_Rago)\
**Post date:** [April 11, 2014, 3:31pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-apply-a-lag-to-a-camera/280320/1 "2014-04-11T15:31:49Z")

</div>

Hi! I’m working with the Side Scroller template. Is there any way to apply a follow lag to the camera when the player jumps?

I think it can be done using a Lerp, but I’m not sure how to tell the camera since it’s inside the component, and of course, it moves _with_ the component itself.

Any ideas?

Thanks!  
Luke

---

<div class="post-metadata">

**Author:** ![PeterLNewton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterLNewton](https://forums.unrealengine.com/u/PeterLNewton)\
**Post date:** [April 12, 2014, 3:48am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-apply-a-lag-to-a-camera/280320/2 "2014-04-12T03:48:37Z")

</div>

Hey **Luke di Rago** ,

This seems to be the best solution I could come up with. Let me know how it works out for you.

Note: This is within the _MyCharacter_ Blueprint in the **Side Scroller Project**.

 ![3800-cameralagbehind.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/3/b/33b87e32547190914b9cf554fd7bef0f85c008c6.jpeg)

_Peace_

---

<div class="post-metadata">

**Author:** ![Luke\_di\_Rago](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Luke\_di\_Rago](https://forums.unrealengine.com/u/Luke_di_Rago)\
**Post date:** [April 12, 2014, 5:10am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-apply-a-lag-to-a-camera/280320/3 "2014-04-12T05:10:07Z")

</div>

Awesome!! It worked like a charm. I’m actually needing only a lag in Z axis, when it jumps. I’m gonna try to find a more elegant way to do it, since I started breaking and making vectors and now, as you can see, the wires look a set of headphones in a pocket :P.

I’m making a ‘port’ of a game I did in a 2D engine, mainly to learn UE4 and keep myself motivated to finish something. You can play it here to get an idea where I’m going [Game Jolt - Games for the love of it](http://gamejolt.com/games/arcade/derez-infinite/1749)

So I’m using the Sidescroller template, but making the pawn simulate pressing right every tick, and giving the player only the control to jump.

Really, thanks a lot for taking time to help me! 😃  
Luke

 ![3815-camera_zlag.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/5/b353c8590368d00e6adec7942123ba697f5893b4.jpeg)

---

<div class="post-metadata">

**Author:** ![PeterLNewton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PeterLNewton](https://forums.unrealengine.com/u/PeterLNewton)\
**Post date:** [April 12, 2014, 6:44am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-apply-a-lag-to-a-camera/280320/4 "2014-04-12T06:44:24Z")

</div>

If you break things into variables it may look better haha! But spaghetti is always good! I’ve looked at Epic nodes and sometimes, its difficult to get things to look just right. Either way I’m glad I could at least get you going!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e2b61c12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e2b61c12](https://forums.unrealengine.com/u/anonymous_user_e2b61c12)\
**Post date:** [August 5, 2014, 1:20pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-apply-a-lag-to-a-camera/280320/5 "2014-08-05T13:20:51Z")

</div>

Since this thing is spawning a new Camera, I’m losing my ortho width setting (currently in orthographic projection mode), how can I can I put it back ?

---

<div class="post-metadata">

**Author:** ![Valkyrie\_Sound](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Valkyrie\_Sound](https://forums.unrealengine.com/u/Valkyrie_Sound)\
**Post date:** [March 30, 2016, 10:20pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-apply-a-lag-to-a-camera/280320/6 "2016-03-30T22:20:13Z")

</div>

A more elegant solution in UE4.10 for those who need it is to add a springarm to the Capsule Component of the player Character BP and attach the camera to it. The springarm has settings for Lag (to the left of the screenshot), and you can enable and define lag and separately enable and define camera rotation lag 🙂

If you want no lag _except_ when the player jumps, I don’t believe this will arrange that on its own without also effecting the sideways camera motion 😕

 ![84492-screenshot+2016-03-30+23.17.31.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/5/6c5d7c2ebdf9cd983faba1720121f492c2890923.png)

---

<div class="post-metadata">

**Author:** ![Mr1TBOfRAM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mr1TBOfRAM](https://forums.unrealengine.com/u/Mr1TBOfRAM)\
**Post date:** [October 11, 2019, 3:24am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-apply-a-lag-to-a-camera/280320/7 "2019-10-11T03:24:45Z")

</div>

Wow, 5 years later and this is still coming in handy. I know no one will see this, but I am so thankful. I am building a 2d game for a school project and this is a perfect little detail! Thanks again!
