On 3/29/08, Lucio Torre <[EMAIL PROTECTED]> wrote:
> hi,
>
> i have been using batches and groups with sprites to get something like a
> scene graph.
>
> i found that only if i do:
> sprite.group = group
> sprite.batch = batch
>
> i will get the correct behavior. if i do
>  sprite.batch = batch
>  sprite.group = group
>
> strange things happen.
>
> You can find a sample attached. (non working, reorder group and batch to
> fix)
>

Thanks, I've fixed the problem in r1987.

Note that if you supply batch and group in the Sprite constructor
instead of setting them afterwards you'll save pyglet quite a bit of
work.

Alex.

--~--~---------~--~----~------------~-------~--~----~
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