Changeset 241:4c5941cf2b7f


Ignore:
Timestamp:
04/07/11 12:58:16 (12 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Rebase:
34373463313862333766356331323961313962346239663965613738316265393435323263396163
Message:

Fix off-by-one errors in attack animation sequence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/sprites/base.py

    r239 r241  
    147147                self._animation = self._old_state
    148148                self.facing = self._old_facing
     149                self._update_image()
    149150            elif self._frame == self.attack_frame and self._tick == 5:
    150151                # Attack the player
     
    166167            self._tick = 1
    167168            self._frame = 0  # Start the attack from the beginning
     169            self._update_image()
    168170        else:
    169171            player.damage(1)  # collision damage
Note: See TracChangeset for help on using the changeset viewer.