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

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

2 Likes

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

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.

1 Like