URL of the experiment: link
Description of the problem: I have been trying to create a simple experiment which would randomly display 3 pictures (each presented 4 times) and one of the two letters on the left or right side of each picture. Picture and letter presentation should be counterbalanced. Participants are required to press the corresponding key followed by an instant feedback message communicating if their response was correct or not.
The experiment runs smoothly in PsychoPy, but when launched on Pavlovia or in browser pilot mode the feedback message is not always shown correctly. I have been investigating the issue and noticed that when translated to Java script the value of the variable corrAns seem to align with the particular picture and not the letter presented on the screen. As such, when participant presses the right key, it is sometimes registered as incorrect in Pavlovia.
Do you know what might be the problem?
I would be grateful for any suggestions to fix this issue.
I tried the suggested solution, but, unfortunately, it did not help. When I press the right letter on the keyboard I still sometimes receive the message that my response is not correct.