Hello. I am trying to make this code work online but it seems to be skipping over the entire code component. I kept getting issues using win.flip and event.waitkeys, so I commented them out. I am trying to draw the images based on a condition and then advance if any button is pressed. What’s the best way to do this so it works online?
# draw slide based on condition
if instruction_slide_2_selection == 1:
fractal_blossom.pos = [-.12, .13]
fractal_octopus.pos = [.12, .13]
instructions_slide_two.setAutoDraw(True)
fractal_blossom.setAutoDraw(True)
fractal_octopus.setAutoDraw(True)
#win.flip()
#event.waitKeys()
elif instruction_slide_2_selection == 2:
fractal_blossom.pos = [.12, .13]
fractal_octopus.pos = [-.12, .13]
instructions_slide_two.setAutoDraw(True)
fractal_blossom.setAutoDraw(True)
fractal_octopus.setAutoDraw(True)
#win.flip()
#event.waitKeys()
kb.clearEvents() # clear keyboard events
instructions_slide_two_second.setAutoDraw(True)
#win.flip()
#event.waitKeys()
kb.clearEvents() # clear keyboard events