Seeking Help with Projectile Queue Issue in a Simple Football Game

I’m currently developing a basic football game inspired by one I previously encountered on this forum. In the game, the player shoots a ball past a defender. My issue is with the game controls: pressing the ‘A’ button multiple times results in a queue of projectiles being launched after brief pauses. Despite attempting to resolve this by implementing various Boolean variables combined with if-statements, the problem persists, mimicking the effect of simply placing a pause button under the projectile block. I would greatly appreciate any straightforward solutions or assistance.

You can check out the game here: https://makecode.com/_2m0efRFJA9KL

2 Likes

I figured out how to patch it! It was just a misplacement of having a pause on the A button being pressed. https://makecode.com/_F276RJ9rsFiF

1 Like

Hello and thank you for your input! I included the pause intentionally to help prevent spamming the ‘A’ button. However, I now realize that it’s creating more issues than it’s solving. Removing the pause seems to enhance the overall functionality. I’m still keen on resolving the original issue, where pressing ‘A’ should register a single button press and then wait for a reactivation after a brief pause. Your feedback is greatly appreciated, and I’m looking forward to addressing this challenge. Thanks again for your response!

Just test with many lenghts I would say

What do you mean?

periods of time like the delay