Back again! So I’m working my way through a number of issues I bump into with my task which I’ve been posting about on here. To give some overview, I’m using a Windows 10 laptop/tablet hybrid. I’ve created a touchscreen task to be used with children where they tab on different stim to give their answer. Because of the multitouch aspect of my screen, I had to use the code component provided by Michael in this thread to establish when stim was tapped on:
Now I need a way to keep repeating a trial until a participant gives the correct answer. I also need a way of playing conditional audio files dependent on whether or not a correct or incorrect answer was given.
So to clarify:
- Incorrect answer given. Play “incorrect answer” audio. Repeat this trial.
- Correct answer given. Play “correct answer” audio. Move onto the next trial.
I’ve already got the trial ending only on a “correct” answer tap but have been failing to proceed with the rest of this.
I’m still pretty new to PsychoPy and coding languages so any advice would be appreciated