# Losing lives randomly

**URL:** <https://forum.makecode.com/t/losing-lives-randomly/34761>\
**Category:** Help\
**Tags:** game\
**Created:** [March 20, 2025, 8:57pm UTC](https://forum.makecode.com/t/losing-lives-randomly/34761 "2025-03-20T20:57:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noobie386](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@Noobie386](https://forum.makecode.com/u/Noobie386)\
**Post date:** [March 20, 2025, 8:57pm UTC](https://forum.makecode.com/t/losing-lives-randomly/34761/1 "2025-03-20T20:57:17Z")

</div>

I can’t find anywhere in the code that would cause this but I’m new to this so I’ve probably missed something.

> **[Andy's PLatformer](https://arcade.makecode.com/45483-00914-66960-62840)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [March 21, 2025, 10:05pm UTC](https://forum.makecode.com/t/losing-lives-randomly/34761/2 "2025-03-21T22:05:29Z")

</div>

Looks like the 3D render extension creates its own player sprite that is getting hit by one of the bats and lowering your health. You can probably just add a “for (value) of (sprites of kind [player]), set (value) position (-100, -100)” at the beginning so that all player sprites will get placed really far away. Then the main player sprite will get placed correctly when you place it on the start tile and the wrong player sprite will still be far away so nothing can happen to it.

If that doesn’t work you’ll have to remove the 3D render extension, which you can do by going into JavaScript, clicking on the “explorer” tab underneath the simulator, and deleting the file for the extension. You should probably remove the “toggle view mode” block from your code before you remove the extension so that nothing errors.

---

<div class="post-metadata">

**Author:** ![Noobie386](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@Noobie386](https://forum.makecode.com/u/Noobie386)\
**Post date:** [March 21, 2025, 10:05pm UTC](https://forum.makecode.com/t/losing-lives-randomly/34761/3 "2025-03-21T22:05:30Z")

</div>

I found out what was causing it and its now fixed

---

<div class="post-metadata">

**Author:** ![Noobie386](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@Noobie386](https://forum.makecode.com/u/Noobie386)\
**Post date:** [March 21, 2025, 10:38pm UTC](https://forum.makecode.com/t/losing-lives-randomly/34761/4 "2025-03-21T22:38:37Z")

</div>

That was the issue thank you
