Hello, I am making a top-down shooter where there is a soldier and a custom cursor. I made a code so that the screen focuses on both, but more on the soldier:
Camera => Set scroll to disabled
Every tick: Camera => Set Position to Soldier.X, Soldier.Y
Every tick: System => Scroll to X: lerp(Camera.X, Cursor.X, 0.3), Y: lerp(Camera.Y, Cursor.Y, 0.3)
But that goes against this code:
Camera => Set scroll to enabled
If Function "Shoot" is Called => Call Function "ScreenShake"
If Function "ScreenShake" is Called => Camera => Shake
How could I combine the lerp code and the screenshake one?