Message to use this in a project. How it works: Blip follows the cursor, and when it is touching a certain colour it either sets the timer to 0 (in this case the white background) or increases the timer (using the red and blue rectangles here). The circular animation is on a different sprite, and circles around the cursor.
Occasionally there will be a delay before the animation, although moving the mouse away and over the colour again will fix this.