# HG changeset patch # User Neil Muller # Date 1302305365 -7200 # Node ID c4f719d34b1903f0181982ef6e2caef4cdc19dd3 # Parent 0110c3a059a127dc213cca7cb53f6e40288cd5a2 Reset animation clock when starting attack animation diff -r 0110c3a059a1 -r c4f719d34b19 skaapsteker/sprites/player.py --- a/skaapsteker/sprites/player.py Sat Apr 09 01:26:17 2011 +0200 +++ b/skaapsteker/sprites/player.py Sat Apr 09 01:29:25 2011 +0200 @@ -240,6 +240,8 @@ # Only have a bite attack print 'attacking' self.attacking = 2 + # Reset the animation clock + self._last_time = time.time() print "F1" def action_fire2(self):