Problem with Interactive Card Project

Several of my students designed cards similar to the one with the flowers disappearing and reappearing after the count has reached 3 or greater. The code they use looks just as the example but their action takes place after one click instead of after 3.

This is one example of my students work.

@larnold2 Here is a remix version of your code. https://studio.code.org/projects/gamelab/UnQ-wCwCk3OFTMJDkNW1DZowGN-c7JGa-CHyOUOj1VQ
I noticed that the mouserPressedOver(sprite) triggered multiple times for one mouse click. So I used booleans instead of the counter to keep track of the balloons that were popped. Hope this helps.

1 Like