responding to 2 stimuli (touch screen)
Hello,
Right now, I'm attempting to design an experiment in which participants are given a choice between touching one of two stimuli, which will be accurate, and the other stimulus, which will be incorrect.
Tw
o of my squares are available for the subjects to touch. I have also defined the area of interest. Currently, my code looks like this. I was wondering if anyone had any other recommendations/tips or could point out my error.
Thank you for all your help!
Comments
Hi @MarieMona ,
The second if statement is not logically correct, because you're checking that the x coordinate is both larger than (or equal to) 416 and smaller than (or equal to) 224.
As a more general note, there is probably a much easier way to accomplish this. You can give
sketchpadandCanvaselements a name and then use this name to check if a mouse click was on the element.If you're using a combination of a
sketchpadand amouse_response, then this is documented here:If you're using Python
inline_script, then this is documented here:Hope this helps!
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!