oh. Thanks for your help!

--- On Sun, 1/11/09, Jake b <[email protected]> wrote:

From: Jake b <[email protected]>
Subject: [pygame] Re:
To: [email protected]
Date: Sunday, January 11, 2009, 3:09 PM


-----Inline Attachment Follows-----

You need to call the parent class's init function:

class basicsprite(pygame.sprite.Sprite): #create a sprite class

    def __init__(self, img):

        pygame.sprite.Sprite.__init__(self)

        self.image = pygame.image.load(img).convert_alpha()

        self.rect = self.image.get_rect()


-- 
Jake




      

Reply via email to