Code not working

[Posts in the debugging category need to have the following pieces of information included in order to help other teachers or our moderator team best help you. Feel free to delete everything in brackets before posting your request for debugging help.]

I expect scary to disappear after 15 seconds

Hello,
The way the code is written when the cake is clicked, the count goes up. The variable count does not count seconds. It starts at 0, where it is declared, and will go up each time the cake is clicked (because of the if statement).

When scary appears, if you keep clicking where the cake is, even though it is not visible, scary will disappear. Does that make sense?

If you’d like to code a timer so it does disappear after 15 seconds that is a little more complicated. Let me know if you’d like to know more about that.
~Cecilia

In addition, MousePressedOver might not be the block you want to use in the if statement. It might be though, you only need to click the cake area 4 or 5 times before scary disappears.

To see explanations and examples of how each block works, hover over the block in the toolbox section and then click on the bubble that appears for the info about that block.