I’ve a little problem with my animation.
I detect the collisions between an object and a character. I would like to play an animation when the collision is detected.
But that don’t work !
It’s my function when my characters are created, I create a actorInterval
def setModel(self,model,animName):
self.animName = animName
self.obj = model
self.anim = self.obj.actorInterval(self.animName)
It is my function when the collision is detected
def CollisionAnswer(self):
self.anim.start()
print 'anim play'
When the collision is detected the message ‘anim play’ is write on the console, but the animation is not played
Thanks a lot for your response
Sorry for my English, I’m French and I don’t speak very good English.