Two buttons selected

I have a student that wants to create a game that when a student selects two buttons on the screen out of the 12 buttons if they have the same background color a point is given. How do we get a two button click function?

A straightforward way to do it:

If count becomes 0, how will it ever change after that?

Disable the first button and use the Every button list block to scan for other disabled blocks.

Reenable every button after two have been disabled.

Compare colors of disabled buttons.

Here's a version with one button at a time:

color_match.aia (4.8 KB)

initialize global score to

when  Screen1 .Initialize do