# Loosing lives randomly in second stage

**URL:** <https://forum.makecode.com/t/loosing-lives-randomly-in-second-stage/44471>\
**Category:** Help\
**Created:** [June 12, 2026, 12:11am UTC](https://forum.makecode.com/t/loosing-lives-randomly-in-second-stage/44471 "2026-06-12T00:11:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rascy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rascy/32/32844_2.png) [@Rascy](https://forum.makecode.com/u/Rascy)\
**Post date:** [June 12, 2026, 12:11am UTC](https://forum.makecode.com/t/loosing-lives-randomly-in-second-stage/44471/1 "2026-06-12T00:11:15Z")

</div>

I was making adjustments to my game like the guide and choose your character. Then when I was playing through I lost all my hearts after a few seconds in the second stage. It seemed to loose hearts at the same speed as I would loose hearts if I was touching an enemy. I can’t see anything in the code that would do that, can anyone help?

> **[nuclear bomb the main copy - Copy](https://arcade.makecode.com/76440-39680-81703-99847)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [June 12, 2026, 4:47pm UTC](https://forum.makecode.com/t/loosing-lives-randomly-in-second-stage/44471/2 "2026-06-12T16:47:55Z")

</div>

ummm I don’t know if anybodies gonna be willing To help because the code is very unreadable, I managed to sort some of it whoever is willing: [https://arcade.makecode.com/S67969-55763-47223-87746](https://arcade.makecode.com/S67969-55763-47223-87746) but please try to make it more readable. for example, the area variables name mySprite20, ########, %%%%%%%%, and sprite types named darcy, Aaa, Ruyjybbutth. I would also recommend learning how arrays work.

---

<div class="post-metadata">

**Author:** ![Vincent](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vincent/32/31472_2.png) [@Vincent](https://forum.makecode.com/u/Vincent)\
**Post date:** [June 13, 2026, 8:41pm UTC](https://forum.makecode.com/t/loosing-lives-randomly-in-second-stage/44471/3 "2026-06-13T20:41:07Z")

</div>

I cant read the code but the error looks like its the snow that damages the player. Change the way it spawns or destroy it entirely… Maybe it’s the sprite type that’s the problem. I’m saying this after playing once.

---

<div class="post-metadata">

**Author:** ![Rascy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rascy/32/32844_2.png) [@Rascy](https://forum.makecode.com/u/Rascy)\
**Post date:** [June 14, 2026, 12:41am UTC](https://forum.makecode.com/t/loosing-lives-randomly-in-second-stage/44471/4 "2026-06-14T00:41:49Z")

</div>

Thank you. I will try to make it more organised, especially the variable! And I will look into arrays.
