Mercurial > skaapsteker
changeset 328:c4f719d34b19
Reset animation clock when starting attack animation
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 01:29:25 +0200 |
parents | 0110c3a059a1 |
children | de359cd87fa2 |
files | skaapsteker/sprites/player.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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):