OS** (e.g. Win10): Win10
PsychoPy version** (e.g. 1.84.x): v2020.2.0
Standard Standalone? (y/n)** If not then what?: y
If participants click the colourful circle with the mouse, correct feedback is given. The code below has been working correctly until now, but suddenly it started giving false feedback sometimes even if it clicked in the right place. What could be the problem? thanks in advance.
msg=‘Oops!That was wrong.You are directed to the study phase.’
I guess at that point (in the feedback routine), the circle is no longer is being displayed, so the test will never pass. I think this follows on from this other thread below. The key is to use a variable that will persist and pass from one routine to another, not something that is time-sensitive (such as whether the mouse is currently clicked in a stimulus):