Prioritizing events
My code is:
def mykey(key)
if key ==' ':
#perform some animation of an avatar (such as speaking)
male1.addAction(speech)
#Then starts the sequence of conversation exercise
choices = ["Hi..."]
answer = viz.choose("......",choices)
if answer == 0;
choices1 = ....
and this continues
viz.callback(viz.KEYBOARD_EVENT,mykey)
When I am running the above code, first my interaction boxes are appearing and then the animation of the Avatar. What I actually want is first the animation of the Avatar and then the sequence of conversation interaction.
Thanks
|