Thanks for the input anyways. As silly as it is, I might end up doing that. Technically you don't even need to do that in photoshop, you can just have your code create the flipped sprites if they don't exist already using the image.save() function after flipping them using the steps above, and then re-loading it under its new filename.
- Kenny On Jun 10, 1:09 pm, Tristam MacDonald <[email protected]> wrote: > On Wed, Jun 10, 2009 at 9:33 AM, [email protected] > <[email protected]>wrote: > > > > > > > Hey there, > > > I've spent way too much time trying to fix this issue, but I'm getting > > nowhere. > > > I am flipping my sprites on the X axis using get_transform > > (flip_x=True). This works fine, even when I flip animations, BUT it's > > not working properly when I use it for multiple sprites that use the > > same set of images. If I flip one sprite, all the other sprites also > > flip even though I didn't tell them. If I understand Python's builtin > > id() function correctly, it's using the same copies of the images for > > both sprites, which would make sense. However, using copy.copy() to > > make new copies of each image doesn't help, and copy.deepcopy() throws > > an exception. > > > I figure this is a pretty elementary thing for someone making a > > platformer or any other sort of game that requires sprite-independent > > texture flipping. > > > any help is appreciated! > > It doesn't fix your issue, but when I made a platformer using pyglet's > sprites, I had to pre-flip my sprites in Photshop (i.e. store both > directions for every sprite). > -- > Tristam MacDonaldhttp://swiftcoder.wordpress.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
