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