No, batches aren't very much like that. How are you adding the sprites? Source code would be useful for helping you.
On 21 May 2011 05:18, MrXenotype <[email protected]> wrote: > I'm fairly new to Pyglet, and I was wondering: > > All this time I've assumed batches are like lists/arrays of objects > and labels. > So theoretically, I can add, say, 100 cat sprites to the batch, and > when space key is pressed, call an event, that adds another > 100 cat sprites to the batch. And it would redraw. > > That's my problem. It's not redrawing. :P It seems like the on_draw() > event is called constantly, so the window is refreshed and the batch > is continually drawn. So I guess it's because the new 100 sprites > didn't get added to the batch right? :/ > > Help would be nice. :3 > > Thanks! > -Xenotype > > -- > 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. > > -- 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.
