I’m building an experiment in which participants need to choose the right stimulus then drag and drop it in a polygon in the center of the screen. Now the program is up & running (for now they just click on the stimulus and it appears in the polygon) however I don’t know how to code in the builder the “drag & drop” part.
I found this Topic from 2014:
In which @Michael suggests the following code:
elif (mouse3): if grating.contains(myMouse): grating.setPos(myMouse.getPos())
However, the users asking the question were using code not the builder. I tried it in the “each frame” tab in the builder but it didn’t work (either an error message saying elif (mouseS1): <-- invalid syntax, or the mouse stops working altogether).
Is there a different code for the builder? Or am I simply using it in the wrong place?
Thanks in advance.
OS : Windows 7
PsychoPy version: 1.84.2