Description of the problem:
I tried to set two texts for mouse clicks, and it didn’t work. So I used two squares in the back. It worked but once I chose to store the click (no matter what), it will not be able to run on Pavlovia.
Error code:
Unfortunately we encountered the following error:
TypeError: obj.contains is not a function
Try to run the experiment again. If the error persists, contact the experiment designer.
I read that thread but I’m not sure how to implement these changes in the builder.
Here is my code, the commented line is where the error occurs
type or paste code here
// check whether click was in correct object
if (gotValidClick) {
corr = 0;
corrAns = corrans;
for (let obj of [corrAns]) {
// if (obj.contains(mouse_5)) {
corr = 1;
};
};