Game dev
Saved & recent

Camera follow

Related terms: dead zone, smoothing, look-ahead, screen shake

Game cameras rarely stay glued to the player. A dead zone is an area in the middle of the screen where the player can move without the camera reacting. Smoothing makes the camera glide toward its target with a lerp each frame.

Look-ahead shifts the view toward where the player is heading. Screen shake adds a short random offset on impacts.

Further reading
Godot: Camera2D
view stays still view shifts right dead zone
While the car stays in the dead zone the view holds still. Once the car leaves it, the camera shifts along the road.

View in the full Game dev collection