Millisecond Forums

Restarting Stimulus Position

https://forums.millisecond.com/Topic22637.aspx

By Psych_Josh - 10/2/2017

Dear Inquisit,

Currently I have a script whereby the mouse controls a cursor (a small black ball), with a sentence attached to it. The participant is tasked with clicking where they would like to place the cursor (and subsequently, the sentence) for 8 different trials. This is a script largely drawn from the Spatial Delayed Response Task within the Millisecond library (and therefore contains written code that is well beyond my programming level). The task works, however the cursor's starting position for each trial is the location chosen to place the cursor form the trial previous. Ideally, I would like the cursor's position to restart from the same position each time (i.e., display.width/2, display.height/1.5), however any attempts to create this results in the ideal position of the cursor, but the cursor no longer responds to mouse movements.

I have attached my script - if you would like me to post anything specific from the script in here for reference I can, but honestly I do not know which parts would be relevant. Any direction or help would be greatly appreciated.

Many thanks in advance,
Josh


By Dave - 10/3/2017

Psych_Josh - Tuesday, October 3, 2017
Dear Inquisit,

Currently I have a script whereby the mouse controls a cursor (a small black ball), with a sentence attached to it. The participant is tasked with clicking where they would like to place the cursor (and subsequently, the sentence) for 8 different trials. This is a script largely drawn from the Spatial Delayed Response Task within the Millisecond library (and therefore contains written code that is well beyond my programming level). The task works, however the cursor's starting position for each trial is the location chosen to place the cursor form the trial previous. Ideally, I would like the cursor's position to restart from the same position each time (i.e., display.width/2, display.height/1.5), however any attempts to create this results in the ideal position of the cursor, but the cursor no longer responds to mouse movements.

I have attached my script - if you would like me to post anything specific from the script in here for reference I can, but honestly I do not know which parts would be relevant. Any direction or help would be greatly appreciated.

Many thanks in advance,
Josh



Create another trial that displays some clickable stimulus at the desired cursor start position. Run that trial at the start of each round, thus forcing the participant to place the mouse / cursor where you want it to be and start from there.

To illustrate, see the attached script based on yours. Run the "debug" block and see how the "startDC1" trial is invoked.

Hope this helps.