2 images in the same sketchpad overlapping in cursor_roi
Hi.
I am creating an experiment. In one of the sketchpads I have 2 images. One background image which covers the whole screen and another image with a small circle which appears in random positions. I want the participants to be able to use the mouse to identify the small circle and click on it. I have named the background image as "background" and the small circle as "target". I want to provide feedback based on if participants found the target or not. I am using cursor_roi to provide feedback on their answer BUT the thing is that because there are 2 images in the same sketchpad the cursor_roi identifies both of them, even if participants click only on the "target" image. Any ideas on how to fix that?

Comments
Hi Phoenix,
The variable
cursor_roiis a string in which each clicked element is separated by a semicolon (e.g. 'background;target'). You can use a Python-style run-if statement to check whethercursor_roicontains a certain value, for example to check whether the target was clicked (among other elements):Does that make sense?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
It makes absolute sense! Thank you so much Sebastiaan!