Feb-24-2021, 06:04 PM
My bad.
class Star(pygame.sprite.Sprite): def __init__(self,ai_game): super().__init__() OR pygame.sprite.Sprite.__init__(self)You can also get a two in one with:
def __init__(self, game): self.groups = game.your_sprite_group#, another group, another group........ pg.sprite.Sprite.__init__(self, self.groups)
game
is wherever you create the sprite from.