def update(self): ''' Updates the position of sprite ''' self.move() EntitySprite.update(self)
def update (self): ''' The update function changes the sprite to look like its moving and calls the entity update function ''' if self.currentStrip is self.strips[self.direction]: self.image = self._get_next_image() else: self.currentStrip = self.strips[self.direction] self.image = self._get_next_image() self.currentStrip = self.strips[self.direction] EntitySprite.update(self)