To use this in your own project, drag the entire sprite called " Detector " into your project.
This is a different way of detecting than some other ones i've seen, which just reset the timer constantly, which renders the timer useless in the rest of your project (which isn't fun)