[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] On walking animations...
- To: pygame-users@xxxxxxxx
- Subject: [pygame] On walking animations...
- From: Guy Anderson <guy.a.anderson@xxxxxxxxx>
- Date: Wed, 7 Oct 2009 15:27:08 -0500
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Wed, 07 Oct 2009 16:27:12 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=LS/so0qZLDKhJW26cOC4XWTRGL5Ln4aOvOoxp3TgXVA=; b=TtvibhudsU6blXZ+cT2cNC0XQgga9FbEOuRq+Ty8FJDMSNIBW73gmARcCWzZrYYyMC tjJVJolPATms3suABp3y9xzJeKRVqMicjoO/fMBD8IDdkXvgiYeF1jCyBsWtaXSKcfc0 vVOXsRXvKDlcLGsyXXPFXCrxacrO0/gr9RlgU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=DwfaymCYzUPP361Iiwh9nXSKPn9dJton6cj6Ad7VE8SrEG6exS8lrbEKy+IeMXAau8 h6L/9Q1icSW7VehBjGLK4Z4CIbURcj+h/9KdiKMujtuCPRTedAi9DC4p9/dPtWwvFl/m GJdTADufF0wA5xnz6z2Ic4FzdgM3Aa9uwN7GM=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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.