# I need help with my game

**URL:** <https://forum.makecode.com/t/i-need-help-with-my-game/13974>\
**Category:** Help\
**Tags:** game\
**Created:** [June 6, 2022, 5:04pm UTC](https://forum.makecode.com/t/i-need-help-with-my-game/13974 "2022-06-06T17:04:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eddieisvibin21](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@Eddieisvibin21](https://forum.makecode.com/u/Eddieisvibin21)\
**Post date:** [June 6, 2022, 5:04pm UTC](https://forum.makecode.com/t/i-need-help-with-my-game/13974/1 "2022-06-06T17:04:47Z")

</div>

i need help with my game, im damaging the enemy sprite but the enemy sprite won’t attack me. on top of that, my player 1 sprite attacks automatically. here is the code,

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

here is the link to my game if the image doesn’t really make sense.  
[https://makecode.com/\_hrDC4mhFxCUv](https://makecode.com/_hrDC4mhFxCUv)
