Collecting a mouse response during a for loop -in OpenSesame
I'm facing a problem in Opensesame. I am programming a visual search task. 12 Stimuli are presented on screen, but they appear one by one, with a delay of 80ms between each stimulus.
I want the participants to respond with a mouse click, when they see the target. Hence, the response should be possible, even when not all stimuli are already shown on screen.
Im am presenting the stimuli using a for-loop.
Now, when I add ad mouse.get_click() command after the for loop, the participants will not be able to respond until all stimuli are on screen.
If I add this command before the loop, the stimuli will not occur before the mouse click.
Moreover, I would like the loop to stop, when a response was given.
Can you please give me some advice in how to approach this?
Thanks a lot!