# TWO LIFE

**URL:** <https://forum.makecode.com/t/two-life/30628>\
**Category:** Help\
**Tags:** game\
**Created:** [September 16, 2024, 10:48pm UTC](https://forum.makecode.com/t/two-life/30628 "2024-09-16T22:48:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PAN](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@PAN](https://forum.makecode.com/u/PAN)\
**Post date:** [September 16, 2024, 10:48pm UTC](https://forum.makecode.com/t/two-life/30628/1 "2024-09-16T22:48:45Z")

</div>

This is the first time I ever coded and I need help. This change life by -1 keeps removing 2 instead. I tried doubling the set life but sometimes, it removes 1 life. The game is about 5 monkeys bouncing off the walls and you have to prevent them from touching the floor.

> **[5 little monkeys](https://arcade.makecode.com/S46142-32625-46117-19827)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [September 16, 2024, 10:59pm UTC](https://forum.makecode.com/t/two-life/30628/2 "2024-09-16T22:59:16Z")

</div>

This is happening because the monkeys are being sneaky and hitting two tiles at once. You can see how it’s working in this variation:

> **[5 little monkeys II](https://arcade.makecode.com/S29519-86878-48630-20163)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

To fix, you can

- change the angle they fly down at (so it comes in solidly on one tile)
- only take the life if the exact bottom-center of the monkey is touching the tile
- only take the life when the sprite is destroyed

I think the last one is easiest. You can see my fix here:

> **[5 little monkeys II](https://arcade.makecode.com/S29519-86878-48630-20163)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
