# HG changeset patch # User Neil Muller # Date 1302181096 -7200 # Node ID 4c5941cf2b7fe110202adebd5db502f799f973b5 # Parent 9adf5076f3a2c1239c4707170d99e199f01f0b32 Fix off-by-one errors in attack animation sequence diff -r 9adf5076f3a2 -r 4c5941cf2b7f skaapsteker/sprites/base.py --- a/skaapsteker/sprites/base.py Thu Apr 07 14:55:29 2011 +0200 +++ b/skaapsteker/sprites/base.py Thu Apr 07 14:58:16 2011 +0200 @@ -146,6 +146,7 @@ # We've just looped through the animation sequence self._animation = self._old_state self.facing = self._old_facing + self._update_image() elif self._frame == self.attack_frame and self._tick == 5: # Attack the player self.do_attack() @@ -165,6 +166,7 @@ self._animation = 'attacking' self._tick = 1 self._frame = 0 # Start the attack from the beginning + self._update_image() else: player.damage(1) # collision damage