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

Re: [pygame] Diffefrences between sprite.Group and sprite.RenderUpdates (and Group.draw question)



Luca wrote:

(where "all" is for now a RenderUpdates instance) draw sprites on the
screen in some order. There is a way to control the order of sprites
drawed on screen? I like to blit images ordered on Y position on the
screen.

I recommend using the special version of RenderUpdates called OrderedUpdates (see the Pygame docs for details). It will draw the contained sprites in the order in which they're added to the group.

Aaron