Hi, (changing a previous too complicate post)
I have created an experiment in the builder with a code component. In short, a sound is played, and participants then need to select an image by clicking on it with the mouse. The code component makes it possible to register which image was selected and also to signal to the participant which image one has clicked on through changing the opacity of the clicked image. The opacity is restored to normal again. I did this by using win.flip() between the opacity specifications, however, I was just told (thank you Michael) that win.flip() is not supposed to be used in the builder and it might be interfering with the registering of images (sometimes, not all clicks get registered!). Does anyone have a suggestion for how I can substitute win.flip() below with something else and still get the effect that when an image is clicked, it changes opacity for a fraction of a second? The code is below.
for stimulus1 in [ uh, oh, ah, au, u, o, a]: if mouse.isPressedIn(stimulus1): continueRoutine = False thisExp.addData('clicked', stimulus1.name) stimulus1.opacity = 0.2 win.flip() stimulus1.opacity = 1 if continueRoutine: event.clearEvents()