[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] sprite 'weird' rotation



thanks!

but btw, i tried to apply it, and the result got more weird - not only
i can't move the sprites independently, as the rotations got much more
weird

http://pastebin.com/f733ebf04

(anyway, i'm still newbie on Pygame, and i still struggle a lot about
how Python deals with variables, arrays, lists, and methods )

if someone know how to fix it, be welcome on editing that, and sharing
us the resulting pastebin url - thanks a lot in advance! :)



On 7/19/09, Michael George <mdgeorge@xxxxxxxxxxxxxx> wrote:
> You can use a function from my game:
>
> http://pen.svn.sourceforge.net/viewvc/pen/data/parts/cannon.py?revision=31&view=markup
>
> see the rotate_point function
>
> --Mike
>
> Paulo Silva wrote:
>> hi,
>>
>> i confess it seems a bad handle from me about sprite rotation on
>> Pygame - do someone know better how we can handle it better, making
>> them rotating its center?
>>
>> http://pastebin.com/f53335b66
>>
>> thanks!
>>
>
>