I’m developing a program where subjects must click on a “button” (a white circle) on a VR schedule to elicit a reward. My subjects are not finding this very intuitive so I would like make the button more button like by having a small border appear around it while the mouse is clicked inside the polygon. I’ve tried a number of different pieces of code that attempt to change the polygon’s line color or size to no avail. What either ends up happening is no change in the borderline or the line appears but will not disappear after the mouse click has ended. Any thoughts would be appreciated.
In the example below, I have made the polygon have a thick white border around it at all times, and would just like the color to change to black when briefly clicked on.
if (mouseA_3.isPressedIn(TargetStimulusA_3)): TargetStimulusA_3.lineColor = [1, 1, 1] thisExp.addData('Time', t) thisExp.addData('Pos', mouseA_3.getPos()) thisExp.addData('In_Stim', 1) thisExp.nextEntry() while (mouseA_3.isPressedIn(TargetStimulusA_3)): continue