Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

how to record distance between a fixed point and where the participant clicked.

Hello,

I am trying to build a relative size judgement task where participants will be asked to estimate the height of the goalkeeper (example image attached).

Participants will be asked to click on the pole where they believe the goalkeeper's height would be relative to the soccer ball. With classic mouse function, it only records the coordinate (x,y) relative to the whole screen rather than the distance from the bottom bar to the point they clicked.

I purposely do not align the bottom bars (or else relative size judgement becomes too easy). And I would like to change the location of the target stimulus and response stimulus time to time.

If anyone knows how I can record distance between a fixed point (i.e., bottom bar) and where the participant clicked, then it would be a lot of help if you can give me some advise.

Thank you very much for your time.

Cheers,

So So

Comments

  • Hi So So,

    I think that calculating the distance depends on how you decide to implement the manipulation of the location of the target stimulus and response stimulus. Once you have decided on this, you can simply subtract the y positions (in case you are only interested in the vertical distance).

    One way to implement varying positions could be to define the positions in a loop item as variables and then use these variables to specify the position of the line by replacing the y (and potentially also the x) arguments: See the OpenSesame documentation for further details, e.g., here: https://osdoc.cogsci.nl/3.3/manual/variables/#using-variables-in-the-user-interface

    Best,

    Pascal

  • Closed instead of 6586

    Buy Me A Coffee

This discussion has been closed.