[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Re:



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