Reply to Re: reaction time DMOD
If you don't have an account, just leave the password field blank.
wait_for_button() freezes the entire script until a button is pressed, or stop_wait_for_button is called in another script. So this code won't work:
loop:
wait(1);
&wait += 1;
wait_for_button();
if (&result == 2)
{
say_stop("Reaction time: &wait",1);
return;
}
goto loop;
It'll stop at the wait_for_button();
loop:
wait(1);
&wait += 1;
wait_for_button();
if (&result == 2)
{
say_stop("Reaction time: &wait",1);
return;
}
goto loop;
It'll stop at the wait_for_button();