Thread: Vizard Heads
View Single Post
  #1  
Old 02-10-2006, 10:09 AM
betancourtb82 betancourtb82 is offline
Member
 
Join Date: Jan 2006
Posts: 103
Question Vizard Heads

I am trying to set up a scenario where an avatar appears and walks toward an individual. Once shot, the avatar should disappear. I modeled the code after the duck demo where you shoot the ducks with a ball. I'm also adding different faces to each avatar but the problem I'm having is that when the avatar body disappears, a "floating head" remains. Any suggestions? Here is the part of the code that controls these actions (the indentation don't show up but are correct on my code)

if object.isTarget and bullet.lastHit != object:
fade = vizact.fade(1,0,.5)
#Play the avatar hit animation
object.add(fade)
object.execute(7)
ResetAvatar(object)
#object.translate(avatarBeginPos)
#object.visible(viz.OFF)
#object.
#Play quack sound
viz.playsound('arrgh.wav')
# #Increment score
# IncrementScore()

hitObject = object
Reply With Quote