# Enemy not killing player

**URL:** <https://forum.makecode.com/t/enemy-not-killing-player/32567>\
**Category:** Arcade\
**Created:** [December 18, 2024, 12:16am UTC](https://forum.makecode.com/t/enemy-not-killing-player/32567 "2024-12-18T00:16:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellogracias](https://avatars.discourse-cdn.com/v4/letter/h/848f3c/32.png) [@hellogracias](https://forum.makecode.com/u/hellogracias)\
**Post date:** [December 18, 2024, 12:16am UTC](https://forum.makecode.com/t/enemy-not-killing-player/32567/1 "2024-12-18T00:16:03Z")

</div>

for some reason, i add the change lif by -1, but my enemy wont reduce the life amount.

 ![Screenshot 2024-12-17 175752](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/7/b/7b159b38dac536f9b781f7593daba067f1163ec8.png)

---

<div class="post-metadata">

**Author:** ![AgentBoom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agentboom/32/16635_2.png) [@AgentBoom](https://forum.makecode.com/u/AgentBoom)\
**Post date:** [December 18, 2024, 5:52pm UTC](https://forum.makecode.com/t/enemy-not-killing-player/32567/2 "2024-12-18T17:52:49Z")

</div>

You should create a “on sprite of kind Player overlaps other sprite of kind Enemy” and put that code in there.

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [December 18, 2024, 5:59pm UTC](https://forum.makecode.com/t/enemy-not-killing-player/32567/3 "2024-12-18T17:59:58Z")

</div>

Use a Sprite of Kind Overlapping Sprite of Kind
