psychopy.org | Reference | Downloads | Github

Replicating the stimuli


#1

PsychoPy version 3.0.0
Standard Standalone? (y/n) y
What are you trying to achieve?:
This is not a question about a bug, rather, about a best way to do it.
I am trying to recreate the experiment described in this article. Specifically, I want the yellow disks to be indicative of the delay associated with “red” or “green” option. Eg., three yellow disks - three years, two - two, and so forth.
My question is, what is the best way to replicate these yellow disks? just create an object for each one of them and make it conditional, or there is another way? Thank you! Below is the illustration.


#2

You can tie the visibility of the stimulus to the value of the “delay” variable. e.g. create multiple yellow stimuli. In the first put something like this in the “opacity” field:

delay >= 1

and the next one:

delay >= 2

and so on. i.e. each of these expressions evaluates to True or False, which is equivalent to the values 1 or 0 respectively.