[open] Visual world paradigm
Hi!
I want to implement sth very similar to Hunter's (http://forum.cogsci.nl/index.php?p=/discussion/351/mousetracking-and-visual-world-paradigm/p1) so, I have a fixation dot and I want them to click ON the dot, which would then be followed by a sketchpad with four pictures. I am asking them to click on of the pictures.
So, everything looks beautiful, only, the procedure is not restricted (as it should) only on the points of interest. That is,clicking to any part of the screen will make the phase go to the next step.
I know it is trivial. but i can't see where the problem lies..
Thank you in advance,
Sophia
Comments
Hi Sophia,
If you are not interested in the trajectory of the mouse, it would be easier to use forms with
image_buttonwidgets. But since you generally are interested in the trajectory in the visual world paradigm (?), let's see how you can prevent the click from being accepted when it's on an invalid area of the screen.Basically, the trick is to check the coordinates of the clicked position against a list of pre-specified valid coordinates, i.e. the coordinates of your images. The principle is illustrated in the script below, which you can combine with the more elaborate script that Hunter posted.
Hope this helps, and good luck!
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thank you!
I'll try it out!
~s