Problem with Interactive Card Project

csd-unit-3-lesson-14
#1

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.

#2

@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