# Need help, Projectile bug

**URL:** <https://forum.makecode.com/t/need-help-projectile-bug/19560>\
**Category:** Help\
**Created:** [May 1, 2023, 4:51pm UTC](https://forum.makecode.com/t/need-help-projectile-bug/19560 "2023-05-01T16:51:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fire/32/8625_2.png) [@fire](https://forum.makecode.com/u/fire)\
**Post date:** [May 1, 2023, 4:51pm UTC](https://forum.makecode.com/t/need-help-projectile-bug/19560/1 "2023-05-01T16:51:11Z")

</div>

have developed a game where food drops down, an enemy moves left to right and drops projectiles that damage the player’s health when hit. You are trying to implement a feature where the player can shoot projectiles at the enemy to defeat it after collecting a certain number of points. However, when you try to add this feature, the player’s own projectiles end up damaging themselves instead of the enemy

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [May 1, 2023, 4:54pm UTC](https://forum.makecode.com/t/need-help-projectile-bug/19560/2 "2023-05-01T16:54:55Z")

</div>

Feel free to post a link to your game here so we can give you better feedback, but have you tried looking at changing the `kind` of the enemy projectile?

You may consider making both enemy projectiles and the enemy sprite be of kind “enemy” so that if either touch the player, the same thing happens.

 ![Screenshot by Dropbox Capture](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/0d05ba8d0a92754597678a973f86693e90d20d24.png)

Then, the computer will treat the enemy projectiles and player projectiles differently.

---

<div class="post-metadata">

**Author:** ![fire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fire/32/8625_2.png) [@fire](https://forum.makecode.com/u/fire)\
**Post date:** [May 1, 2023, 6:40pm UTC](https://forum.makecode.com/t/need-help-projectile-bug/19560/3 "2023-05-01T18:40:12Z")

</div>

Hey thank you this is what I needed now I cant figure out how to create different levels and difficulties

> **[Wizard of OZ](https://arcade.makecode.com/S49223-94223-72709-47336)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![fire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fire/32/8625_2.png) [@fire](https://forum.makecode.com/u/fire)\
**Post date:** [May 2, 2023, 7:21am UTC](https://forum.makecode.com/t/need-help-projectile-bug/19560/4 "2023-05-02T07:21:27Z")

</div>

Ive updated the game and put in a level in the game I want the player to collect points and once reached that score you can then shoot the enemy and kill him and win the game how can I create a projectile that is only available after a certain number of points
