Hi. I have problem with running experiment online via Pavlovia. It is a self-paced reading experiment. I can run it successfully on Psychopy. But after I uploaded it on Pavlovia, after the greeting page, I got the warning “TypeError: core.Clock is not a constrctor”.
May I ask for help?
These are my codes:
Python
trialClock = core.Clock()
word_list = Sentences_P.split(’*’)
word_list.reverse() # switch the order
nextWord = word_list.pop()
text_5.setText(nextWord)
text_5.setAutoDraw(True)
event.clearEvents()
rtList3 = []
rtList4 = []
rtList4.append(trialClock.getTime())
trialClock.reset()
Java:
trialClock = new core.Clock();
word_list = Sentences_P.split("*");
word_list.reverse();
nextWord = word_list.pop();
text_5.setText(nextWord);
text_5.setAutoDraw(true);
event.clearEvents();
rtList3 = [];
rtList4 = [];
rtList4.append(trialClock.getTime());
trialClock.reset();