# Invincible Enemies

**URL:** <https://forum.makecode.com/t/invincible-enemies/22011>\
**Category:** Help\
**Tags:** game\
**Created:** [August 23, 2023, 6:03pm UTC](https://forum.makecode.com/t/invincible-enemies/22011 "2023-08-23T18:03:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PLAYER42](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@PLAYER42](https://forum.makecode.com/u/PLAYER42)\
**Post date:** [August 23, 2023, 6:03pm UTC](https://forum.makecode.com/t/invincible-enemies/22011/1 "2023-08-23T18:03:48Z")

</div>

I’ve gotten a spawning system to work in my game and I’ve even gotten some basic combat in but for some reason there are always one or two that are completely invincible.  
Anyone know why?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/6/6ed79bb5c1c533897d357486617e95b5cecca9ae.png)

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [August 24, 2023, 5:43pm UTC](https://forum.makecode.com/t/invincible-enemies/22011/2 "2023-08-24T17:43:16Z")

</div>

I can’t… see anything, the photo is too low res  
Can you just post the link to your game please?

---

<div class="post-metadata">

**Author:** ![PLAYER42](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@PLAYER42](https://forum.makecode.com/u/PLAYER42)\
**Post date:** [August 25, 2023, 3:01am UTC](https://forum.makecode.com/t/invincible-enemies/22011/3 "2023-08-25T03:01:44Z")

</div>

Sorry, I didn’t know I could do that lol

> **[Battle test](https://arcade.makecode.com/S24545-40560-18049-38879)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [August 25, 2023, 4:37pm UTC](https://forum.makecode.com/t/invincible-enemies/22011/4 "2023-08-25T16:37:19Z")

</div>

Okay, fixed it for you! The problem was that you were trying to destroy the `myEnemy` sprite instead of the sprite you were actually attacking. This is easily fixable by just dragging and dropping the `sprite` parameter into the destroy block, like this

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/ed40f8157175c2d7b9c87c6f1d64d72421c22572.png)

Here’s the fixed version

> **[Battle test (fix)](https://arcade.makecode.com/S31964-87546-38591-45411)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![PLAYER42](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@PLAYER42](https://forum.makecode.com/u/PLAYER42)\
**Post date:** [August 28, 2023, 4:35pm UTC](https://forum.makecode.com/t/invincible-enemies/22011/5 "2023-08-28T16:35:52Z")

</div>

Thanks mate!

---

<div class="post-metadata">

**Author:** ![PLAYER42](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@PLAYER42](https://forum.makecode.com/u/PLAYER42)\
**Post date:** [September 7, 2023, 5:05pm UTC](https://forum.makecode.com/t/invincible-enemies/22011/6 "2023-09-07T17:05:59Z")

</div>

My original version somehow got corrupted or something so fortunately, I still had your version as a backup!
