I’m trying to create an experiment that involves a continuously rotating (animated) polygon. I’ve made a triangle polygon in the Builder, and added a custom code component (see picture) that adds 1 degree to the orientation of the polygon for each frame. This works perfectly offline, but when I upload the experiment to Pavlovia, it doesn’t rotate anymore and just shows a static picture of a triangle. I don’t get any error messages.
Some things I’ve tried to fix it:
- Tried different browsers.
- Set the orientation of the polygon to “set every frame” in the Builder. This however also causes it to stop rotating offline, so I keep it set to “constant.”
- Tried the code component with different polygons, of different sizes, and with images. They all rotate offline, but not online.
Does anyone know what the problem might be here?