I have five images appearing on the screen and I want to signal to the participant which one they have clicked.
The participant will select one image via mouse click and I want the one they choose (regardless of whether or not it is the correct choice) to have a border surrounding it
I have polygons behind each of the images that participants can click.
I want the colour of the polygon to change from grey to (some other colour) whenever a participant clicks on an image. I also want the colour to change back to grey after participants press the image because participants can click on multiple images in a trial. So I want the border to change to a different colour for every mouse click that participants make on an image.
My current code is:
if mouse.isPressedIn (PRightOne): PolygonColor = 'white' in BeginRoutine
and added this as the fill color for the polygon
I am getting an error saying that PolygonColor is not defined as well as other errors.
Let me know how I can solve this problem,