# Games is getting over befoer the three lives have ended

**URL:** <https://forum.makecode.com/t/games-is-getting-over-befoer-the-three-lives-have-ended/12558>\
**Category:** Help\
**Tags:** game\
**Created:** [March 7, 2022, 5:25pm UTC](https://forum.makecode.com/t/games-is-getting-over-befoer-the-three-lives-have-ended/12558 "2022-03-07T17:25:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dakbn](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@Dakbn](https://forum.makecode.com/u/Dakbn)\
**Post date:** [March 7, 2022, 5:25pm UTC](https://forum.makecode.com/t/games-is-getting-over-befoer-the-three-lives-have-ended/12558/1 "2022-03-07T17:25:41Z")

</div>

i have set the life number to 3 but when i play the game and loose 1 life the games autoatically ends how can i fix this plss help

---

<div class="post-metadata">

**Author:** ![kwx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kwx/32/1545_2.png) [@kwx](https://forum.makecode.com/u/kwx)\
**Post date:** [March 8, 2022, 5:25pm UTC](https://forum.makecode.com/t/games-is-getting-over-befoer-the-three-lives-have-ended/12558/2 "2022-03-08T17:25:42Z")

</div>

This is hard to answer without seeing your code, but a common problem is that the thing that caused a lost life is still happening, so you then immediately lose the remaining lives also.

For example, if the player lost a life due to touching an enemy, you need to move the character away, restart the level, or remove the enemy. Otherwise the sprites are still overlapping and you’ll lose a life each update cycle.
