Your question is not precise possible designs:1. You get title saying "now click for bonus!" and if you click 3 tiems during 0.5 secondsyou get bonus2. Every click can be a begining of sequence Side questionif click sequence like this #0 0.1 #1 0.2 #2 0.3 #3 0.4 Do I get two bonuses? ---------------------------See if it works (Option 1)When created bool_1 = false // Are 3 seconds being countedMouse pressed if not <bool_1> { bool_1 = true clcik_counter = 1 do after 3 seconds { bool_1 = false if click_counter>=3 { bonus } }} else { click_counter++}----------------------------------Option 2When createdClick_counter=0t_1 =0t_2 =0t_3 =0When mosue pressedif (click_counter<1) { if (click_counter==0 ) t1 = time// current time since beginign of the scene if (click_counter==1) t2 = time // current time since beginign of the scene click_counter++ }else{ t3= timeif (t3-t1<0.5) {bonus}t1=t2 t2=t3 }}