URL of experiment: https://gitlab.pavlovia.org/chenxuh2/wedell-tasks
Description of the problem:
This is a task that has 6 rectangles on the screen overlaying text. Every frame update, there’s code to check if the mouse is currently positioned over one of the rectangles, and if so, make that rectangle transparent.
The code works in PsychoPy but wasn’t working on PsychoJS with version 2020.2. After reading this post, we tried setting the version to 2020.1 in the experiment settings, and it fixed the problem; the opacity updated correctly online. However, we then had to add a couple new components to the task. Again, the additions worked in python on the desktop, but compiling to JS no longer works and generates errors similar to what’s described here. (I think the task may have originally been developed in an older version of PsychoPy.)
Any suggestions how we can make additions with the new version of PsychoPy but still have the opacity updating every frame online?
Thanks in advance!