URL of experiment: https://run.pavlovia.org/cmfo/exp4-generation-task-with-audio-instructions/
Description of the problem: I only have a bit of code in this experiment, so I am a bit confused as to why this is not working as I have used this psychopy task in previous experiments but now it gives an error. Did anything change with JS?
The only bit of code is this one:
pressed_key = Guess_inclusion.keys[0]
if pressed_key == ‘z’:
x = -0.650
elif pressed_key == ‘x’:
x = -0.215
elif pressed_key == ‘n’:
x = 0.215
elif pressed_key == ‘m’:
x = 0.650Smileyface.pos = [x, 0]