If this template helps then use it. If not then just delete and start from scratch.
Win10 (e.g. Win10):
**PsychoPy version: ** : 2021.1.4
**Standard Standalone? (y/n): ** YES
What are you trying to achieve?:
Firstly, participants should try to remember the orientation of a bar. After that, they should try to reproduce the angle of the remembered bar by pressing the keyboard. When pressing the right arrow, the bar should rotate clockwise, when pressing the left arrow the bar should rotate anti-clockwise. participants adjust the orientation of the bar until they think its orientation is almost the same with that of the remembered bar, and participants press enter to end this trial.
What did you try to make it work?:
I defined a variable “barorientation” as the orientation of the bar, and use the code:
the following is my routine:
What specifically went wrong when you tried that?:
the bar only rotated for the first press and ended the trial.
untitled.psyexp (12.9 KB)
many thanks if you could help me. I have been puzzled for three days. Looking forward to guidance.