Hello, I am working on a task on Windows 10 using v.2021.2.3
The goal seems pretty simple - the task is a little long, (1 1/2 hours), so we have periodic breaks. Currently, I have the code set up to give breaks after every 72 trials. During these breaks, I provide feedback to the participants on how well they are doing. Right now, I just have the number of answers they’ve gotten correct out of the total number of trials for that block, (e.g., 68 / 72 correct). I also want to add an image that is a face that is smiling if they are doing better than 80% accuracy or frowning if they are doing worse than 80% accuracy. I already have a ‘counter’ going, where my variable ‘num_corr_sec’ totals how many trials they have gotten correct for that block.
The only idea I had so far was to add both images to the feedback section, and set their opacity to zero. Above that, I added a code that does this:
if num_corr_sec >=58:
Face1st.opacity = 1
elif num_corr_sec <58:
Face5th.opacity = 1
where Face1st is the ‘happy face’ and Face5th is the ‘sad face’. Although there were no errors in the code, neither of the faces appeared, regardless of how well I did. I figure I probably need a different approach - what can I do instead?