Hi, I've got my own "actor" class which handles loading different sprites for an actor's animations. Basically it works thusly: a.action['idle'], a.action['right'], etc.
For collisions, I want to use simple rects based on the sprite's current image (or even just the first image). At the moment, it looks like the call to get the width of the sprite's image varies depending on whether the sprite is using an animation (image.get_max_width) or a static image (image.width) ... I can set my class up to use the right function at init, but I was wondering if perhaps this is a sign I'm not using the library correctly? Regards, Luke --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
