[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] 2 surfaces on a Sprite class



Hey there, I'm getting started with Sprites, I was wondering how could I
manage 2 or more surfaces on a single sprite class. I first tried to make a
single sprite class for each surface, but each class must share a lot of
internal variables, so having them as a single class makes things easier..
but then I realized that when myGroup.draw() is called, it will blit
self.image to the given surface (usually screen) at the self.rect position,
so...

should I manually blit all class' surfaces into self.image before calling
myGroup.draw()? or is there a better/clean way to do this?

any kind of suggestions are very welcome.


Alex


____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org