Storing and displaying trial responses in real time
I am new to OpenSesame and I am currently trying to design an online experiment on risky choices. During the process I ran into the following 2 issues:
1. The image below represents how the display of our experiment should look like. The squares on the screen represent the different trials. There are 40 squares in total, and therefore 40 trials. The yellow square essentially acts as a tracker that indicates in which trial the participant currently is. In addition, in each trial the participant can either choose option (a) or option (b). The trials where the participant has chosen option (a) should be “stored” with a blue color and the trials where the participant has chosen option (b) should be marked with the color red. In other words, we want the experiment to exhibit “memory” by storing the participants’ responses in terms of color. The experiment should keep track of the choices of a participant so that if, for instance, a participant is in trial 13 they can see how they responded in trials 1 to 12 by means of the assigned colors.
I have managed to partially create this display on OpenSesame (condition B of the file attached to this post). When I choose option (a) the color of the corresponding trial turns blue and when I choose option (b) the square turns red. Nevertheless, the history of responses and their corresponding colors are not “stored” as they do not remain on the screen. Currently the only response visible to the participant is that of the last trial, as depicted in the image below:
2. In another condition, we would like the experiment to again exhibit “memory” but this time in a different way. If possible, we would like to recreate the display shown below, where the participants can see a square across trials that displays their responses in terms of the proportion of options (a) and options (b). For example, up to the trial shown below, the participant can see that they have selected a higher number of choice (a) responses (shown in blue) compared to the lower number of (b) choices (shown in red).
Any assistance or tips on how to proceed would be greatly appreciated!
Thank you in advance,