Hi,
Is this code inside a director function? If it is, then you could do the following:
Code:
male.act(1)
viz.waittime(male.getduration(1))
ball.translate(x, 1, 1)
Otherwise you can't do this in a loop since the wait command will stall the graphics engine.