#1
|
|||
|
|||
Speech during actions
Dear Worldviz!
Is there any way to work out to get the avatar to speak during an action? I have an action loop ( moving around ) and I want to get the avatar to speak during moving. I'm using the avatar.addAction(animation), avatar.add(speak) to perform these actions Zoltan |
#2
|
|||
|
|||
Hi,
Yes, you can play two actions at the same time. When you add actions to objects you can specify which action pool to add it to. Action pools allow you to run multiple actions on objects in parallel. Please have a look in the documentation under the Actions section. For example, lets say you wanted to perform a speak action and animation action in parallel: Code:
#Create an action to play animation 3 anim = vizact.animation(3) #Create an action to speak 'words.wav' words = vizact.speak('words.wav') #Play both actions on the avatar simultaneously avatar.add(anim,1) #Add action to pool 1 avatar.add(words,2) #Add action to pool 2 |
#3
|
|||
|
|||
Great! Thank you for the answer.
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|