How can I make camera lag?

In games such as the Stars Align Engine, there is a method called “Camera Lag” or Camera Smoothing that can make the camera have a small noticeable delay whenever the player moves. I’m wondering how I can achieve the same by overwriting the default camera system, though I’m not sure how I should do this. So, what should I do?

I did this recently, basically you want a function bound to renderstepped that lerps between the current position of the camera and where the position of the camera would be if it wasn’t delayed. Also have this lerp timer reset whenever the players position changes.

In all honesty there is probably a much simpler way of doing this but my version had different functions involved. Hope this helps

2 Likes