def playHitAnimation(self): randomHitAnim = 'hit' + str(utils.getDX(2)) self.enemyModel.play(randomHitAnim, fromFrame=0, toFrame=12)
def enterDeath(self): #print('enemy enterDeath') self.enemyAIBehaviors.removeAi('all') randomDeathAnim = 'death' + str(utils.getDX(3)) self.enemyModel.play(randomDeathAnim, fromFrame=0, toFrame=12)