Followed this tutorial for scripting out a lerp camera youtube.com/watch
Works great, except for one thing he didn't cover.
When my player jumps, the camera jumps with it. Just as scroll to behavior should. But I don't want it to do that, because when I jump, the floor beneath me disappears, and that makes level design not fun for many reasons.
So the question - how do I force a fixed Y coordinate on the camera when jumping? I want it to lerp every other time. But not when I'm jumping or moving forward in that local space.
Here is a visual example of my issue -
Player on floor, where I want camera to be fixed and lerping left/right during movement AND jumping:
Player jumping, the camera follows, floor disappears beneath:
And pictures of my Event Sheet:
Tried everything under the sun I can think of, but just can't wrap my head around the logic needed to do what should be a simple, simple thing. Very annoying.
Any help is appreciated.