Collecting responses while stimulus remains onscreen OSWEB
I want to display a stimulus in a sketchpad, and limit the response time to 2500 milliseconds (using a keyboard response). But - i wants that after the subjects response (by a keypress) the stimulus will still appear on the screen.
In the past it was possible using coroutines, but this feature is not supported in OSWEB.
Does anyone have any suggestion on how to make this happen in OSWEB as well?
so far i have tried this sollution (without much success):
In the first sketchpad (emotinal_pic) the subject response useing a keypress (keySB_emo with timeout of 2500 milliseconds), then another sketchpad appears (emotinal_pic_1) for a time (timeLeft) that depends on the response to the previous stimulus (emotinal_pic).
When I run the code i get an error: time can not be negative (I also tried to put it at an absolute value, and it still does not work).