def __init__(self, obj): # A Character has animation frames, so we initialize it as ab AnimatedSprite. AnimatedSprite.__init__(self, obj) # Use the spritesheet's bg color for transparency. self.alpha = -1 self.switch_image(self.dir, 1)
def __init__(self, obj): AnimatedSprite.__init__(self, obj) self.switch_image(0,0)