Hello. I've been slowly but somewhat steadily building a little engine so I can hopefully program a little game one day, but I've run with a little problem: the whole "Group Order Shuffle" thing.
Sometimes in games(2D ones) except for sidescrollers, depending on a character's perceived y value, the sprite appears to be behind an object or in the front of said object; consider the case of RPGs, beat- em up, etc. In my case, I've tried to find my way around it using batches and ordered groups to draw my sprites, and all works fine and dandy, but I can't find a way to shuffle the order of the group to accomplish the desired effect, as the elements of the groups are always drawn however pyglet does it, and I can' find a way to move them around. Can anybody elucidate some way to help me proceed forward? Maybe I'm doing it all wrong. For the record: I know how to order the groups themselves in order to draw them(kinda like layers) but it's fixed an non-dynamic(perfect for a side-scroller), but it is the group's elements the ones that I'm having trouble with, and I don't see how it can be good to have each sprite element belong to its own group(that would be just too much, wouldn't it?). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
