I-frames, short for invincibility frames, are the frames of an animation during which a character cannot take damage. A dodge roll that passes straight through a sword swing works because of them. So does the flashing second after you are hit in an old platformer.
The word "frame" is literal. Games update in steps, commonly 60 per second, so one frame is about 17 milliseconds. A dodge with 12 i-frames at 60 frames per second protects you for a fifth of a second.
Anatomy of a dodge
The picture explains most deaths. Roll too early and the attack arrives during recovery. Roll too late and it arrives before the safe part begins. The goal is to put the blue section on top of the moment the attack would have connected.
Four kinds of i-frames
| Kind | When you get them | Examples |
|---|---|---|
| Dodge | During part of a roll, dash or sidestep | Dark Souls, Elden Ring, Hades, Enter the Gungeon |
| After a hit | For a moment after taking damage, often shown by flashing | Super Mario Bros., Mega Man, Hollow Knight |
| On spawn | For a moment after appearing | Many online shooters |
| During a move | Built into certain attacks or cutscene-like actions | Reversals in fighting games, finishing moves in action games |
Dodge i-frames turn defence into a timing skill. In the Dark Souls series the roll passes through attacks, and a heavier load of equipment gives a slower roll, so armour is a trade against mobility. Enter the Gungeon gives its dodge roll the same property, which is how players survive screens full of bullets.
After-hit i-frames exist for fairness. Without them, one enemy standing on top of you would drain the whole health bar in a blink. The flashing tells you that you are safe and for how long. Skilled players use this on purpose, taking one small hit to walk through a larger danger while the protection lasts. Speedrunners call this a damage boost.
Spawn protection stops players being hit before they can react. It usually ends early if the protected player attacks.
What i-frames are not
- Not a block. A block reduces or stops damage while the attack connects. I-frames make the attack miss entirely.
- Not a smaller hitbox. Some dodges work by moving or shrinking the area that can be hit. That is a different trick, and it fails against attacks that cover the whole area.
- Not always complete. Some games make a dodge immune to attacks but not to grabs, or to bullets but not to explosions.
- Not guaranteed online. In a networked game, what you saw and what the server saw can differ slightly, so a dodge that looked perfect may still count as a hit.
How to practice timing
- Dodge into attacks, not away. Rolling backwards keeps you in range for the whole swing. Rolling through it gets you past the dangerous part faster and puts you behind the enemy.
- Watch the weapon, not the wind-up. Enemies in hard games delay their swings to catch early rolls. Press when the weapon starts to move towards you.
- Learn one enemy at a time. Pick a single attack. Let it hit you once to see its real timing, then dodge it ten times in a row before fighting back.
- Count the recovery. After each dodge, note when you can act again. If you cannot attack before the next swing, dodge twice and attack later.
- Do not mash. Many games queue a second dodge if you press twice. The extra roll usually ends exactly where the next attack lands.
A final point: i-frames set the rhythm of a whole game. A long, generous dodge makes for fast, aggressive fights. A short one makes every dodge a commitment. When a game feels unfair, it is often worth checking whether you have been dodging by reflex instead of by timing.