I have created a routine where a participant has to check a box, then press a key to move to the next screen.
I have put the following code :
Begin routine : checkboxes = [polygon] clicked = []
Each Frame for polygon in checkboxes: if mouse.isPressedIn(polygon) and polygon.name not in clicked: polygon.color = "black" clicked.append(polygon.name)
And added a start condition to the key component : mouse.isPressedIn(polygon)
This works fine locally but when I upload the experiment to Pavlovia I get the following error :
Type Error Cannot read properties of undefined (reading ‘status’)
Would be grateful for help on this issue.
All the best,
Cameron