How does a game camera follow you? Smoothing, dead zones and look-ahead
Every game has a camera, and how it follows you changes how the game feels. Learn the four common types: locked, smooth, dead zone and look-ahead.
Steer a hero through a big world and switch between cameras to see how smoothing, dead zones and look-ahead change what you see, and what to try first in your own game.

You move your character right, and the screen follows. It feels so natural that you never think about it. But behind the scenes, the game is running a small camera that has to decide, many times a second, where to look. Get it wrong and a game feels jerky, floaty or even makes you a little queasy. Get it right and nobody notices at all.
The camera is just a position
In most games, the world is bigger than your screen. The camera is a point in that world that says which part of it you can see. Everything is drawn relative to that point. Move the point right by 10 pixels, and every object on screen slides left by 10 pixels. That is all a camera is: a position, plus the size of the window you look through.
So the whole question becomes: each frame, where should that point go? The simplest answer is "exactly on the player". Every game maker starts there, and it works, but it has a few problems.
Locked to the player: simple, but stiff
If the camera copies the player's position every frame, the player never moves on screen. They sit dead centre while the whole world slides past. Every tiny twitch of the character is copied by the entire screen, and every sudden stop or turn makes the world lurch. In a fast game that can feel harsh.
It also hides information. You only see as much ahead of you as behind you, even though you are almost always heading forward.
Smoothing: let the camera chase
The most common fix is to let the camera chase the player instead of snapping to them. Each frame, the camera moves a fraction of the remaining distance towards its target. When the player is far away it moves quickly, and as it catches up it slows down gently. This is often called lerp (short for linear interpolation) or damping, and engines such as Godot and Unity's Cinemachine have built-in settings for it.
The strength is a trade-off. A little smoothing hides jitter and makes turns feel soft. Too much and the camera lags so far behind that you run off screen, which feels floaty and unresponsive.
One detail matters for makers: the fraction should be based on the time that passed, not on the frame count. Otherwise a camera that feels fine at 60 FPS behaves differently at 144 FPS. The demo below uses the time-based version, so it feels the same on any screen.
Dead zones: don't react to every wiggle
A dead zone is a box in the middle of the screen. While the player moves inside the box, the camera does not move at all. Only when the player pushes against the edge does the camera start to follow. This is popular in platformers, because small hops and steps no longer shake the whole screen.
Look-ahead: show where they are going
The look-ahead trick aims the camera slightly ahead of the player, in the direction they are moving. You then see more of what is coming and less of what you left behind. Combined with smoothing, the view drifts forward when you run and settles back when you stop.
Try it: four cameras, one hero
Below, the hero (the coral square) moves around a big world. Steer with the arrow buttons or the arrow keys, or press and hold anywhere on the view to walk towards your finger. Or press Auto-run to let the hero run a route with sharp turns. Switch camera types and watch where the hero sits on screen. The readout shows how far the hero is from the centre of your view.
What to look for
If you are building your own game, a few rules of thumb help. Start with a small amount of smoothing and raise it only until jitter disappears; if you can feel the lag, you have gone too far. Use a dead zone for precise platforming, so small hops do not shake the screen. Use look-ahead for fast games where seeing ahead matters more than seeing behind. And always keep the player inside the view, whatever the camera does.
Next time you play, watch where your character sits on screen while you run and while you stop. That small choice, made by a few lines of camera code, is a big part of why a game feels good.
More in Making Games
all Making Games →2 Dec How do games branch a conversation? Dialogue choices, flags and locked answers Dialogue in games is a map: each line of text is a node, and each answer is a road to another node. Add a few flags and numbers the game… Making Games
24 Nov How does a 2D game fake depth? Parallax scrolling and background layers explained Walk through a game level and the faraway mountains barely move while the trees rush past. That trick is parallax scrolling, and it makes a… Making Games
16 Nov Why do menus and movements feel smooth? Easing and tweening explained Press a button in a game menu and the panel slides in, slows down and settles. That feel comes from easing: changing the speed of a… Making Games
3 Nov How do games make fire, smoke and sparks? Particle systems explained Fire, smoke and sparks in games are usually not drawings or videos. They are swarms of tiny short-lived particles made by an emitter. This… Making Games
1 Nov How does an enemy find its way around a wall? Pathfinding and A* explained How does an enemy find its way around a wall? Walking straight at you works only until the first obstacle. Pathfinding treats the map as a… Making Games
30 Oct How do game mods work? Load order and why the last mod wins Ever installed two mods and watched one quietly stop working? A mod is a small package that swaps or adds the data files a game reads, and…