# I need help with enamy drops

**URL:** <https://forum.makecode.com/t/i-need-help-with-enamy-drops/20322>\
**Category:** Help\
**Tags:** game\
**Created:** [May 31, 2023, 5:17pm UTC](https://forum.makecode.com/t/i-need-help-with-enamy-drops/20322 "2023-05-31T17:17:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbbbybbbhhbhbhb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bbbbybbbhhbhbhb/32/8684_2.png) [@bbbbybbbhhbhbhb](https://forum.makecode.com/u/bbbbybbbhhbhbhb)\
**Post date:** [May 31, 2023, 5:17pm UTC](https://forum.makecode.com/t/i-need-help-with-enamy-drops/20322/1 "2023-05-31T17:17:09Z")

</div>

i need help with enemy drops with a chance of dropping weapons

> **[dungeon Quest](https://arcade.makecode.com/S96744-67122-63533-68032)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![ShadowKnight](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shadowknight/32/10476_2.png) [@ShadowKnight](https://forum.makecode.com/u/ShadowKnight)\
**Post date:** [June 1, 2023, 4:36pm UTC](https://forum.makecode.com/t/i-need-help-with-enamy-drops/20322/2 "2023-06-01T16:36:05Z")

</div>

So you want some enemies spawn at different locations and the same with weapons?

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [June 1, 2023, 4:58pm UTC](https://forum.makecode.com/t/i-need-help-with-enamy-drops/20322/3 "2023-06-01T16:58:10Z")

</div>

and for the drop chance there is a % chanch boolèen in “Math”

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [June 1, 2023, 4:58pm UTC](https://forum.makecode.com/t/i-need-help-with-enamy-drops/20322/4 "2023-06-01T16:58:17Z")

</div>

use the on sprite destroy block  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/5d2847e93f3f7fea767b4f352d8640636ac2afce.png)  
sorry for the french blocks

---

<div class="post-metadata">

**Author:** ![ShadowKnight](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shadowknight/32/10476_2.png) [@ShadowKnight](https://forum.makecode.com/u/ShadowKnight)\
**Post date:** [June 1, 2023, 8:34pm UTC](https://forum.makecode.com/t/i-need-help-with-enamy-drops/20322/5 "2023-06-01T20:34:26Z")

</div>

I understand french 100%, so if you want I can translate it

---

<div class="post-metadata">

**Author:** ![BlastBoxGames](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blastboxgames/32/11727_2.png) [@BlastBoxGames](https://forum.makecode.com/u/BlastBoxGames)\
**Post date:** [June 1, 2023, 9:29pm UTC](https://forum.makecode.com/t/i-need-help-with-enamy-drops/20322/6 "2023-06-01T21:29:14Z")

</div>

Im just wondering how did you do the hp bar going down when you get hit?  
😶

---

<div class="post-metadata">

**Author:** ![bbbbybbbhhbhbhb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bbbbybbbhhbhbhb/32/8684_2.png) [@bbbbybbbhhbhbhb](https://forum.makecode.com/u/bbbbybbbhhbhbhb)\
**Post date:** [June 2, 2023, 4:49pm UTC](https://forum.makecode.com/t/i-need-help-with-enamy-drops/20322/7 "2023-06-02T16:49:04Z")

</div>

yeas that would be good

---

<div class="post-metadata">

**Author:** ![bbbbybbbhhbhbhb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bbbbybbbhhbhbhb/32/8684_2.png) [@bbbbybbbhhbhbhb](https://forum.makecode.com/u/bbbbybbbhhbhbhb)\
**Post date:** [June 2, 2023, 4:49pm UTC](https://forum.makecode.com/t/i-need-help-with-enamy-drops/20322/8 "2023-06-02T16:49:23Z")

</div>

have it so when the player makes contact with enemy you have it so it take health away  
(you need the health bar extension)

---

<div class="post-metadata">

**Author:** ![bbbbybbbhhbhbhb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bbbbybbbhhbhbhb/32/8684_2.png) [@bbbbybbbhhbhbhb](https://forum.makecode.com/u/bbbbybbbhhbhbhb)\
**Post date:** [June 2, 2023, 4:49pm UTC](https://forum.makecode.com/t/i-need-help-with-enamy-drops/20322/9 "2023-06-02T16:49:26Z")

</div>

yes please that would be helpful

---

<div class="post-metadata">

**Author:** ![ShadowKnight](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shadowknight/32/10476_2.png) [@ShadowKnight](https://forum.makecode.com/u/ShadowKnight)\
**Post date:** [June 2, 2023, 5:27pm UTC](https://forum.makecode.com/t/i-need-help-with-enamy-drops/20322/10 "2023-06-02T17:27:57Z")

</div>

It says: when sprite of type enemy is destroyed:  
Define item at sprite (image) of type player  
define the position of item at x (sprite x) y (sprite y)
