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

Re: [pygame] Animating sprites with pygame



Hi Dominik, sorry for piping up sooner. I've created a sprite
animation module for Pygame called PygAnim. You can install it from
PyPI by running "pip install pyganim".

There's documentation on this site: http://inventwithpython.com/pyganim/

On Thu, Jul 2, 2015 at 1:24 PM, Paul Vincent Craven
<paul@xxxxxxxxxxxxxxxx> wrote:
> This does some sprite animation in the last step of the example set:
>
> http://programarcadegames.com/index.php?&chapter=example_code_platformer
>
> Paul Vincent Craven
>
> On Wed, Jul 1, 2015 at 9:12 PM, Dominik Martinez
> <dominik2martinez@xxxxxxxxx> wrote:
>>
>> Hi everyone, I was hoping that someone could point me to some tutorials
>> for animating sprites in pygame. I did some googling, and most of the
>> methods I read about seem to either not extend well or act more like a
>> band-aid solution.
>> For example, in my case I have several sprite frames in different
>> directions that I would want to associate with the direction of travel of
>> the sprite (walking right, walking left, etc).
>> I was thinking of creating a separate "Animation" class to keep track and
>> execute the animation, but I want to see if there is a better or more
>> streamlined way of going about this.
>>
>> Thanks!
>
>