# Need Help With my Fighting Game-My First Game

**URL:** <https://forum.makecode.com/t/need-help-with-my-fighting-game-my-first-game/36813>\
**Category:** Help\
**Created:** [May 20, 2025, 11:29pm UTC](https://forum.makecode.com/t/need-help-with-my-fighting-game-my-first-game/36813 "2025-05-20T23:29:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucario13](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@lucario13](https://forum.makecode.com/u/lucario13)\
**Post date:** [May 20, 2025, 11:29pm UTC](https://forum.makecode.com/t/need-help-with-my-fighting-game-my-first-game/36813/1 "2025-05-20T23:29:13Z")

</div>

I Need Help with my game. I’ve found a few glitches I need help with and I need help with a few of my ideas. Here are the glitches:  
My Fire character’s super disappears when it moves off screen  
My Ninja character’s main attack sometimes works, sometimes doesn’t  
and (This isn’t really a bug) I can’t figure out hot to make my water characters main attack work (Its supposed to work like Squeak’s main from brawl stars)  
Here’s the link: [https://arcade.makecode.com/S49213-65487-44574-43630](https://arcade.makecode.com/S49213-65487-44574-43630)

---

<div class="post-metadata">

**Author:** ![MeatballDev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/meatballdev/32/28502_2.png) [@MeatballDev](https://forum.makecode.com/u/MeatballDev)\
**Post date:** [May 21, 2025, 7:27pm UTC](https://forum.makecode.com/t/need-help-with-my-fighting-game-my-first-game/36813/2 "2025-05-21T19:27:30Z")

</div>

Try using the debug feature!

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [May 21, 2025, 7:28pm UTC](https://forum.makecode.com/t/need-help-with-my-fighting-game-my-first-game/36813/3 "2025-05-21T19:28:07Z")

</div>

Welcome to the Makecode forums! This game is pretty good! I hope you stick around. 😊

Ok, your first problem is pretty simple. Because you are creating these as projectiles, they have a flag called “auto destroy” on them. This makes them disappear when they exit the screen to prevent lag. To stop this, simply turn the flag off:

 ![IMG_8825](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/9/e/9eb3621035c7a8131a2b3778c84f1c1c8f0aa461.jpeg)

Your second issue has to do with something weird happening in that “(distance between (sprite) and (othersprite) )” block. When sprites die, they are still calculated by this block.  
This means that if you fire a ninja star and let it come back to you, then you walk far away, that distance block will actually say that you are far enough away from the dead ninja star sprite to run the code and “BoomerangRecharge” will get set to 1. Then, next time you fire, since BoomerangRecharge is 1 the ninja star will instantly get destroyed. To fix this, I simply added an extra check to make sure that a ninja star sprite actually exists that isn’t dead. So BoomerangRecharge gets set to 1 only if the distance is 60 _and_ the ninja star is a non-dead sprite.  
I did this by checking that the length of the “array of all sprites of kind [attack4]” is not 0:

 ![IMG_8826](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/2/2/222c288a61009cff2d92b285889d1bc36a67424c.jpeg)

---

<div class="post-metadata">

**Author:** ![Snake\_oil](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/snake_oil/32/25021_2.png) [@Snake\_oil](https://forum.makecode.com/u/Snake_oil)\
**Post date:** [May 21, 2025, 7:28pm UTC](https://forum.makecode.com/t/need-help-with-my-fighting-game-my-first-game/36813/4 "2025-05-21T19:28:11Z")

</div>

I believe the fire guys super is disappearing because its a projectile and they usually disappear when offscreen

---

<div class="post-metadata">

**Author:** ![Justasmallcoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/justasmallcoder/32/24428_2.png) [@Justasmallcoder](https://forum.makecode.com/u/Justasmallcoder)\
**Post date:** [May 21, 2025, 7:29pm UTC](https://forum.makecode.com/t/need-help-with-my-fighting-game-my-first-game/36813/5 "2025-05-21T19:29:23Z")

</div>

This should fix the Fire guy’s special [https://makecode.com/\_Jsif0dRHVdsE](https://makecode.com/_Jsif0dRHVdsE)

You just needed to make it so that it doesn’t auto destroy. I’m not sure what’s wrong with the Ninja though.

---

<div class="post-metadata">

**Author:** ![lucario13](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@lucario13](https://forum.makecode.com/u/lucario13)\
**Post date:** [May 22, 2025, 1:27am UTC](https://forum.makecode.com/t/need-help-with-my-fighting-game-my-first-game/36813/6 "2025-05-22T01:27:05Z")

</div>

Thank you @WoofWoof! That worked! But I still need to figure out how to make my water characters (I call him Wave) attack work. its supposed to be like squeaks from brawl stars, and attach to the enemy and then “Explode” and deal damage. I can get it to attach, but if an enemy with the attack attached touches another enemy, the attack just attaches to the other enemy. Also I can’t figure out how to do AOE damage.

---

<div class="post-metadata">

**Author:** ![lucario13](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@lucario13](https://forum.makecode.com/u/lucario13)\
**Post date:** [May 22, 2025, 1:27am UTC](https://forum.makecode.com/t/need-help-with-my-fighting-game-my-first-game/36813/7 "2025-05-22T01:27:07Z")

</div>

Also, Any suggestions about like future updates and characters? (P.S I tried to make a shop and skins but it didn’t work out.)

---

<div class="post-metadata">

**Author:** ![Justasmallcoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/justasmallcoder/32/24428_2.png) [@Justasmallcoder](https://forum.makecode.com/u/Justasmallcoder)\
**Post date:** [May 22, 2025, 2:39pm UTC](https://forum.makecode.com/t/need-help-with-my-fighting-game-my-first-game/36813/8 "2025-05-22T14:39:29Z")

</div>

Zap man maybe

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [May 22, 2025, 2:44pm UTC](https://forum.makecode.com/t/need-help-with-my-fighting-game-my-first-game/36813/9 "2025-05-22T14:44:39Z")

</div>

You could look at the Sprite Utils extension for that AOE damage. It has a “all sprites within (X) pixels of (sprite)” block you could use. You could use the sprite data extension to help save which sprite is attached to which bomb, or maybe add a “Sprite is attached” flag of some sort, idk. Goodluck!
