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.
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!