Hi there!

I have to program a CSST (spatial span test) experiment in Psychopy. To do this, 25 squares must be visible on each side of the screen (left and right). I created these squares in the builder. I called them L1-L25 an R1-R25:

Now only one of the five squares may be visible per line and per half of the screen, the others should not be visible (i.e. transparent). In total, only 10 of the squares should be visible at random. One in each line per screen half. Like thtat:


Can anyone help me with what the code should look like so that I can implement this? I can’t get any further with the previous entries in forums and with Chat GPT.

Thank you already from the bottom of my heart!