When running the experiment online on Pavlovia it is not accepting a “no response”, it crashes with the following error:
“TypeError: Cannot read property ‘length’ of undefined”
This doesn’t happen when running the experiment via the builder (this routine has a time limit and should end also without a response).
Have you used any of your own code (e.g. a code component in this study)? Maybe you could provide a link for us to check what’s gone wrong. But basically somewhere in the experiment the code is checking for the length of keys before first checking whether keys is anything at all
I have recently encounter the same problem. In my case, I used a code component to change the opacity of a polygon according to whether or not a response is made, so my code is in fact checking for the length of keys… it works in builder, but I don’t know how to fix this online. I’d appreciate your help.
I changed the code and now there is no error but the code seems not to be working (the polygon doesn’t appear and disappear according to response). Do I have to customize something? (I did translate ‘event’ using your crib sheet).
I avoid having any components with “Each Frame” updates. Instead I use code to make the changes. You could replace test_visibility=0 with polygon_1.setOpacity(0)
OK, I changed that and it seems to be almost working, except it seems now that the polygon is not fully opaque at the beginning of the trial cause I can see the text the polygon was supposed to cover. Should I add anything in the beginning routine tab? something to make the polygon_1 start fully opaque?
What I have now is a variable call text_visibility which is =1 in the begin routine tab, and the that variable is in the opacity field of the polygon component.
Thanks for keep helping me @wakecarter, I am sorry but I am not sure how to use .setAutoDraw(True), should I put it in the begin routine tab like this?