# When I lose a life in my game, I lose two. Why?

**URL:** <https://forum.makecode.com/t/when-i-lose-a-life-in-my-game-i-lose-two-why/30054>\
**Category:** Help\
**Created:** [August 10, 2024, 9:09pm UTC](https://forum.makecode.com/t/when-i-lose-a-life-in-my-game-i-lose-two-why/30054 "2024-08-10T21:09:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bobby5020](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bobby5020/32/16554_2.png) [@Bobby5020](https://forum.makecode.com/u/Bobby5020)\
**Post date:** [August 10, 2024, 9:09pm UTC](https://forum.makecode.com/t/when-i-lose-a-life-in-my-game-i-lose-two-why/30054/1 "2024-08-10T21:09:33Z")

</div>

I have been trying for ages to add lives to my game so that I don’t go all the way back to the start after dying just once. Every time I try to add lives, something doesn’t work. At the moment I’m really happy with my game, except that whenever I’m only supposed to lose one life, I lose two. Does anyone know why this is, and how to fix it?

Here is the game. [https://arcade.makecode.com/S52500-69597-66887-45709](https://arcade.makecode.com/S52500-69597-66887-45709)

---

<div class="post-metadata">

**Author:** ![NeoStreak](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neostreak/32/27498_2.png) [@NeoStreak](https://forum.makecode.com/u/NeoStreak)\
**Post date:** [August 10, 2024, 11:40pm UTC](https://forum.makecode.com/t/when-i-lose-a-life-in-my-game-i-lose-two-why/30054/2 "2024-08-10T23:40:27Z")

</div>

It probably happens because you get hit by lava twice for some reason.

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [August 10, 2024, 11:47pm UTC](https://forum.makecode.com/t/when-i-lose-a-life-in-my-game-i-lose-two-why/30054/3 "2024-08-10T23:47:19Z")

</div>

Hi, @Bobby5020 !

Have you added the blocks that keep track of lives? If so, can you point us to where you’re doing that? If not, then can you add them in and then let us know where to look so that we can help diagnose your code.
