# Buffering while shooting

**URL:** <https://forum.makecode.com/t/buffering-while-shooting/39664>\
**Category:** Help\
**Tags:** game\
**Created:** [October 6, 2025, 8:56pm UTC](https://forum.makecode.com/t/buffering-while-shooting/39664 "2025-10-06T20:56:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ceedekay](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@ceedekay](https://forum.makecode.com/u/ceedekay)\
**Post date:** [October 6, 2025, 8:56pm UTC](https://forum.makecode.com/t/buffering-while-shooting/39664/1 "2025-10-06T20:56:28Z")

</div>

Hi all! Trying to make a bossfight game where the player can shoot six times before they have to reload. However, if you spam click during the reloadinf, once your bar refills all six projectiles will come out at once. Ive tried a couple things to fix it but none have worked. Any ideas? Heres the game:

> **[Boss Battle](https://arcade.makecode.com/S93737-99985-30952-23185)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<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:** [October 6, 2025, 11:54pm UTC](https://forum.makecode.com/t/buffering-while-shooting/39664/2 "2025-10-06T23:54:36Z")

</div>

If you want to get rid of the buffering altogether, you can use something like Forever, If \<A button is pressed\>…  
If you have a variable that is set to “true” when the button is pressed, and “false” whenever it isn’t pressed, you can make sure that each button click results in a single shot instead of multiple.

I should look into if there’s a way to disable button press buffering, because I also often find it annoying.

---

<div class="post-metadata">

**Author:** ![ceedekay](https://avatars.discourse-cdn.com/v4/letter/c/5daacb/32.png) [@ceedekay](https://forum.makecode.com/u/ceedekay)\
**Post date:** [October 7, 2025, 4:38pm UTC](https://forum.makecode.com/t/buffering-while-shooting/39664/3 "2025-10-07T16:38:01Z")

</div>

I’ve tried the variable thing, but the forever trick might work. Thanks!
