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 MacDonald
http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to