On Tue, Mar 4, 2008 at 4:46 PM, Jonathan Doda <[EMAIL PROTECTED]> wrote:

> The changes in 1.1 look great, but I have two questions. First, how do
> you control the order in which Sprites in a Batch are drawn so that
> when rendering the correct sprites are occluded?


Use OrderedGroups. Create one for each "layer" of sprites and pass the
layer's OrderedGroup in as the sprite's group argument. The sprites will
then be drawn according to the ordering of the OrderedGroups.


Second, since the
> Sprite class appears to support only one Animation at a time, what's
> the best way to create a "sprite" (as in the conceptual entity, not
> necessarily the class) that has more than one animation?


You can just assign the new animation as the "image" attribute on the
sprite.


     Richard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to