Hi,
I’m trying to do an emotion test.
I want a random image of an emotion (3 differents types of emotions) to appear and 3 boxes with the name of the emotion. The participant need to click on the good boxe depending the image that randomly appeared.
I wrote this code on every frame :
for stimulus in [heureux, neutre, triste]:
# check if the mouse is pressed within the current one:
if mouse.isPressedIn(stimulus):
# Yes, so store the reaction time in the data:
thisExp.addData('RT', t)
# check if the stimulus' image filename matches the correct answer:
if stimulus.image == eval(reponse):
thisExp.addData('correct', 1)
correct_responses = correct_responses + 1
else:
thisExp.addData('correct', 0)
# end the trial once done here:
continueRoutine = False
# stop any further checking:
break
The problem is : when I look in the log, even if the participant clicked on the good answer, I get a 0.
I upload my excel file too.
Thanks a lotemotions2.xlsx (8.1 KB)