psychopy.org | Reference | Downloads | Github

Bounding Box for Mouse Starting Position

Hello,

I know that there is a general bounding box option through the CustomMouse parameters for limiting mouse movement, but I was wondering if it was possible to have a mouse starting position start out anywhere within a bound box. Any thoughts?

Thank you!

You can use a Code Component to set the position of a Mouse component, if we call your mouse component MyMouse and the coords you want to set it to x and y, then the code would be:

MyMouse.setPos((x,y))

If you put that in the Start Routine tab then it will set the Mouse’s starting position

I understand how to set the mouse at a specific position, but what I want is for the mouse to start randomly within a bounding box.