# Enemy bug & Health Bug

**URL:** <https://forum.makecode.com/t/enemy-bug-health-bug/33464>\
**Category:** Help\
**Tags:** game\
**Created:** [January 28, 2025, 9:11pm UTC](https://forum.makecode.com/t/enemy-bug-health-bug/33464 "2025-01-28T21:11:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Waddling](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@Waddling](https://forum.makecode.com/u/Waddling)\
**Post date:** [January 28, 2025, 9:11pm UTC](https://forum.makecode.com/t/enemy-bug-health-bug/33464/1 "2025-01-28T21:11:12Z")

</div>

I have 2 sprites of the stabber enemy, one works and moves and turns when hitting the red 1 tile & red 2 tile. and the other doesn’t, it gets stuck on walls, it doesn’t have animations for hitting the player. It also has a problem with health where when the players hit the buggy enemy with a shuriken, it’s health doesn’t lower but the one that works does despite it not being hit or in frame, can someone help or recommend another way to fix or replace these mechanics game: [https://arcade.makecode.com/S28536-32146-84629-54518](https://arcade.makecode.com/S28536-32146-84629-54518)

---

<div class="post-metadata">

**Author:** ![TheManBehindTheWall](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@TheManBehindTheWall](https://forum.makecode.com/u/TheManBehindTheWall)\
**Post date:** [January 29, 2025, 6:26pm UTC](https://forum.makecode.com/t/enemy-bug-health-bug/33464/2 "2025-01-29T18:26:35Z")

</div>

Ok, so this happens all the time, if you have more than one thing, it applies the properties to only one, if i make a rock, and then another one, and press a button that destroys one rock, it destroys the newest created one, i dont really know a way around this, other than making a different type of enemy?

---

<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:** [January 29, 2025, 6:26pm UTC](https://forum.makecode.com/t/enemy-bug-health-bug/33464/3 "2025-01-29T18:26:49Z")

</div>

It’s probably because the wall does not have a tile to tell it to turn around, unlike the first.

---

<div class="post-metadata">

**Author:** ![Waddling](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@Waddling](https://forum.makecode.com/u/Waddling)\
**Post date:** [February 1, 2025, 8:10pm UTC](https://forum.makecode.com/t/enemy-bug-health-bug/33464/4 "2025-02-01T20:10:32Z")

</div>

yeah i did that, it works now
