LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

Timer Input

Root / Programming Questions / [.]

ChaseCZCreated:
How do i make a timer that will react to any input i do? Because when i use the normal timer with WAIT command it won't react to my inputs

PRINT"Before timer"
TIME=60
FOR I = 0 TO TIME
IF BUTTON() THEN BEEP
WAIT 1
NEXT
PRINT"After timer"

Or,
TIMEUP=MAINCNT+60
WHILE MAINCNT<TIMEUP
 '... do stuff
WEND