Hello everyone! Today, I wanted to create a quiz based on that video. I wanted to prevent multiple button clicks at the same time so I designed blocks to disable the button after it was answered. However, the button that should be green for correct and red for incorrect didn’t appear because it had been disabled previously. If the correct/incorrect highlights appeared first, it can be vulnerable to multiple click which i tried to avoid. Do you have any solutions?
I would create a variable that is false when the question hasn’t been answered and true when the question has been answered.
When they click a button, check the variable’s value. If it is false, then you can run the regular logic/blocks, but then afterwards set it to true. That way, when they press it again, it doesn’t do anything.
After they move on to the next question, just set the variable to make it false.
I’m going to be hosting office hours next week on Tuesday, so if you want a more detailed explanation/help, feel free to join. I’ll probably be making a bigger post on that soon.