Description of the problem:
I would like to design a picture matching task.
In the experiment two images are displayed side by side - one on the left (imgL) and one on the right (imgL). An image is presented on the left (i.e. a cat). Simultaneously, images should start appearing one by one on the right hand side, 0.4 sec in duration each (lets say of a dog, house, car, cat). When the image of a cat finally appears on the right hand side, it is seen as a match and once participants click on it it should prompt the image on the left to change to another random image from the stimuli list. And this routine should continue until all images have been drawn and matched.
I am not sure how to deal with different duration for each of the images. Images on the right change every 0.4secs but the one on the left should not change until participant has clicked on the correct image on the right.
If I set duration of imgL to blank it prevents the 2nd and every subsequent imgR from loading. I’ve tried ‘set every Frame’ and ‘set every Repeat’ but it did not work. I’d imagine I will likely need a code snippet… I have tried ‘pic_R.status == PsychoJS.Status.FINISHED’ in the ‘Stop’ box of the imgR component after changing it from duration to condition but this did not work.
I have specified what constitutes a correct answer in my stimuli sheet. But again I am not sure how to specify what the correct answer is in each trial in the builder/code component. (For now I’m not worried about feedback or anything like that).
Any ideas of how to go about putting a task like this together in the builder in a way that it can be transferred to Pavlovia would be appreciated.