OS - Win10
PsychoPy version 2020.1.3
I want to pick up an object and drop it into one of two boxes. I want to record which box it was dropped into and then determine if it is the correct one.
I have code that picks up the object and drops it off into the box and everything works great.
EXCEPT if i just click on the box instead of dropping the object there it also works. Not what I want.
I have the following code to handle the mouse and then use the mouse component to determine if the clickable stimuli were pressed to exit the routine. This detects if the mouse is clicked in one of the boxes. But it does not tell me if the object was in it when it was clicked. I introduced a variable ‘pickedup’ to determine if the object was picked up. I then tried to use it as a condition in the mouse component. However the mouse component never exits. I suspect it may be a scope issue but do not know.
Below is the code and the mouse component settings. Any help would be appreciated.