Hi !
I’m totally nex to PsychoPy and to coding, and I need a little help to improve my task.
What are you trying to achieve?:
I need to create a pursuit-fixation task. A target (black circle - made with polygon component - on a white background) is at the center of the screen for several seconds. Then, it moves to the right, then to the opposite left, then it come back to the centrer before going to the top, then at the opposite bottom and finally it comes back once again to the center. So, the drawing of the circle forms a cross shape.
Moreover, each time the circle reaches an extremity of the “cross shape” (4 times), it stops moving for 2s.
What did you try to make it work?:
Thanks to other forum topics, I was able to move the black circle using a loop with an excel file in which I put all the coordinates (x-axe and y-axe, in pixel) of the black circle. And so, thanks to the frame rate of my screen (59,977 Hz), the coordinates of the black circle are update every frame (thankc to the loop) and the circle moves for 4 pixel each frame, which in the end allows me to move the circle in a “smooth pursuit” looks.
Here an example of my excel file
Here the sequence of my task
(I’m pretty sure that a function exists and that using a code would allows me to do the same thing, but I know nothing about coding and I didn’t even know what kind of function allows this.)
What specifically went wrong when you tried that?:
The task works perfectly : the black circle moves in the way I want. BUT, because of the frame rate, the black circle is constantly appearing and disappearing, so that instead of being perfectly black, it si rather gray (which is normal because the coordinates’ circle are constantly update by the frame rate, and that update is perfectly perceptible).
So, my request is how can I make the circle move without it just appearing and disappearing ? (e.g, how can I make it constantly black despite the change of its coordinates ?)
I think that a code is needed to solve this, and that I should probably use a code to make the circle move instead of the loop with the excel file, but like I said at the beginning, I have know idea of which function to use.
Thanks for you help !