# I need help with making a function to kill enemies

**URL:** <https://forum.makecode.com/t/i-need-help-with-making-a-function-to-kill-enemies/13611>\
**Category:** Help\
**Tags:** game\
**Created:** [May 16, 2022, 5:38pm UTC](https://forum.makecode.com/t/i-need-help-with-making-a-function-to-kill-enemies/13611 "2022-05-16T17:38:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![opp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/opp/32/6205_2.png) [@opp](https://forum.makecode.com/u/opp)\
**Post date:** [May 16, 2022, 5:38pm UTC](https://forum.makecode.com/t/i-need-help-with-making-a-function-to-kill-enemies/13611/1 "2022-05-16T17:38:26Z")

</div>

so im making this binding of isaac type roguelike game for a school project and probably personal project, anyways i was wondering what was wrong with this

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/2e285c94664d4c19b60c5e034b1f3c0796208aca.png)  
i am just wondering how i can make this work.  
heres the game link

> **[project rng dungeons](https://arcade.makecode.com/67485-94687-43398-67285)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![opp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/opp/32/6205_2.png) [@opp](https://forum.makecode.com/u/opp)\
**Post date:** [May 16, 2022, 9:37pm UTC](https://forum.makecode.com/t/i-need-help-with-making-a-function-to-kill-enemies/13611/2 "2022-05-16T21:37:35Z")

</div>

no need anymore i have found a fix to the issue
