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

Re: [pygame] On walking animations...



On Wed, Oct 7, 2009 at 4:27 PM, Guy Anderson <guy.a.anderson@xxxxxxxxx> wrote:
> I was wondering how one could do walking animations with sprites in pygame.
> I know that it has been done before, and it probably involves utilizing the
> key.pressed function in the Vector2 module, where when you press a key the
> command retrieves a series of images for the sprite based on certain values
> given. I have no idea how to implement this, though, and my theory could be
> very wrong. All I know is that it has been done before, so I have hope.
>
> Yeah.
>

http://www.cs.iupui.edu/~aharris/pygame/
See Chapter 8
(Game Programming Express Line by Andy Harris)
-- 
b h a a l u u at g m a i l dot c o m
"I am chaos. I am the substance from which your artists and scientists
build rhythms. I am the spirit with which your children and clowns
laugh in happy anarchy. I am chaos. I am alive, and tell you that you
are free." Eris, Goddess Of Chaos, Discord & Confusion