Make stimulus follow mouse during experiment

OS : MacOS Montery 12.5
PsychoPy version : v2002.2.5
**Standard Standalone? ** : y

What are you trying to achieve?:

I would like to be able to make a stimulus (circle) follow the movement of my cursor while running the experiment.

What did you try to make it work?:

I created a routine containing two components: a mouse component called “mouse” and a polygon component where I set the position to mouse.getPos() and selected ‘set every frame’.

What specifically went wrong when you tried that?:

The dot I created sticks to the middle of the screen. It does not react to the moving cursor or to me clicking it (I disabled ending the routine when clicking).