def __init__(self): Base.__init__(self) self.gather_frame_sets() self.image = self.walking_frames_right[0] self.rect = pygame.Rect(0, 0, 32, 32) self.friend = Nimbot() self.friend.set_position(self.rect.topleft) self.knife_attack = Knife() jumpSound = 'sounds/jump.wav' self.jumpSound = pygame.mixer.Sound(jumpSound)