Experiment Test Run.psyexp (34.9 KB)
Attached above is the experiment I am currently working on. Basically, I am trying to make it so that when someone clicks one of the responses to the question, the option lights up green. However, I am having trouble with making it light up green upon click. If anyone can adjust the code or let me know how I can adjust it, please let me know!
Hi @isiahespiritu,
I’ve changed your code component in the routine I’ve attached.
option_colour.psyexp (35.9 KB)
A couple of things to note:
-
Your mouse component was set to end the routine, meaning that even if the option was green the routine would have ended before you saw it (or you might have seen it briefly).
-
So that you can see the response turn to green, I’ve set it up so that you need to press space to end. You can just edit so that the routine ends however you want (just not on that mouse click or you won’t see the option change colour).
-
I used white as the background colour for the option polygons.
-
I made these changes in the latest version of PsychoPy (2024.1.4)
Hope this helps to get you started!
Kim