Pause experiment within one trial
I'm working on an experiment in which the participants should be able to pause the experiment. I implemented a pause button (by mouse click) on my sketchpad using
if var.correct_cursor_pause == var.cursor_roi: exp.pause()
in my inline script.
Now if I resume the experiment after the pause it skips the current trial because that's just what exp.pause() does.
Does anyone of you know a way where I could resume to the current trial and not the next one? Maybe by breaking the loop?
Thanks in advance!