python code does not work anymore with OpenSesame 3.2
i have updated OpenSesame to 3.2 and now my code that used to work, does not work anymore
This is the code
def TRIALhalf1(): #1st part of a trial if fam_hand == 'L' : InstL.show() key, time=leer.get_key() if fam_hand == 'R' : InstR.show() key, time=leer.get_key() for i in range(5):#press SPACE and keep it pressed t0 = red[i].show() #fomula 1 timer goes on #if SPACE is lifted start again while True: for event in pygame.event.get(): if event.type == KEYUP: TRIALhalf1() break if clock.time()-t0 >= 1000: break
What should it do?
Show an instruction to press the SPACE key.
Show a counter that goes down from 5 to 0 in steps of 1sec
However, if SPACE is lifted to early, start from the beginning again.