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!
I’ve been having the same sort of issue for a while. It turns out that the pause function works in series and you need it to run in background or ‘parallel’. Even setting as a function results in the same problem.
Upon searching, I’m being directed to the ‘run in background’ block but that’s only available in the microbit coding system, not makecode arcade.
What we essentially want is a ‘cooldown’ period without the button presses queueing up. Can’t find a fix.