# Health, Lives & Invulnerability Frames > Prevent instant death on contact by adding brief invulnerability frames after taking damage. Health, Lives & Invulnerability Frames — Prevent instant death on contact by adding brief invulnerability frames after taking damage. ## Core approach Without a cooldown, touching an enemy drains 30 HP in one second! Set an "invuln" timer or wait 1 second while blinking the player sprite. - Clamp HP between 0 and max_hp. - Blink with ghost effect (50 → 0) during invulnerability. - Broadcast "Game Over" cleanly when HP < 1. ## Pro tip & next steps Play a distinct hurt sound so players immediately notice damage. - [All Techniques](/en/techniques/): Browse more English guides in this section. - [Scratch Block Dictionary](/en/dictionary/): Look up any Scratch 3.0 block with examples. Updated: 2026-11-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/techniques/health/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)