Play with two versions of a click-detection script. When you're writing click-detecting code, it's easy to forget to wait for the user to let go of the button before you repeat the detecting loop. This means that if the user clicks once, your script can detect thousands of clicks. Have a look inside to see how the buggy cookie clicking can be fixed.
This remake of cookie-clicker shows off how to prevent keys/buttons from being held down, to make sure that a click only registers once. If you would like to see more scratch projects like this one go to my studio - http://scratch.mit.edu/studios/477650/ And also check out some of my different projects @theonlygusti In my projects I want to explain and utilise simple, helpful mechanics that would be useful for other scratchers in their projects. I also aim to make my projects as simple and easy to implement as possible, so I work on cutting down the number and lengths of scripts required for functionality (I add a few extra scripts in my demonstration projects).