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

Re: [pygame] Source rect for sprites in a RenderUpdate group



Sounds to me like you'd want to create a subsurface of your larger image each game tick before calling group.draw() or sprite.draw(). Reference pygame.surface.Subsurface().

self.image = pygame.surface.Subsurface(self.full_image, self.source_rect)

Gumm