# Enemy projectile not damaging Player

**URL:** https://forum.makecode.com/t/enemy-projectile-not-damaging-player/32330
**Category:** Arcade
**Created:** [December 9, 2024, 1:43am UTC](https://forum.makecode.com/t/enemy-projectile-not-damaging-player/32330 "2024-12-09T01:43:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Zyphfan](https://avatars.discourse-cdn.com/v4/letter/z/7ba0ec/32.png) [@Zyphfan](https://forum.makecode.com/u/Zyphfan)
#### Post date: [December 9, 2024, 1:43am UTC](https://forum.makecode.com/t/enemy-projectile-not-damaging-player/32330/1 "2024-12-09T01:43:44Z")

</div>

I’m making a shooting game and I have a player that shoots a projectile and I found some code online that allows an enemy to shoot at the player’s (x,y) position. I’m having trouble with getting the enemy projectile to damage the player.

> **[Shooter game](https://arcade.makecode.com/S07920-52388-00156-72006)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
