Need help with mouse on/off

when you have not clicked on all five dots, and you take the mouse of the stage, the interactive line should be deleted(graphics.clear(); ), and the little animation from the start should come back.

my idea is to have a counter that ++ every frame, but when the mouse is moving on the stage the counter is constantly sett to 0. when the counter is, for example, 50 the animation i visible.

do anyone have any methods that don’t give the 50(for example) frame wait?

and i would also like criticism and ideas on the rest.:hugegrin:


(i am sorry that English isn’t my strong suit)