[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Problems with moving animated images
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Problems with moving animated images
- From: "Brian Fisher" <brian@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 8 Apr 2006 11:18:49 -0700
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Sat, 08 Apr 2006 14:18:57 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WVWLeAGhUV4VbZxCODa0dQ8TJMpOnFzkJFqXr1K66ay0Nt4AfoPngf8fxFcU6vuX6BqwqCsfQTuFlYoWhksiB/L20s69tHNgofJKI1wf/eVtgToGHTmefx8KOHj4FEwvkAvPoEST/86ruAKGesTIJfedlQ6jrnpE0OCoDg8X6yQ=
- In-reply-to: <000801c65b37$bc08a590$b3baba50@hercules>
- References: <000801c65b37$bc08a590$b3baba50@hercules>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
On 4/8/06, Juha <sj.m@xxxxxxxxxxx> wrote:
> The problem I'm experiencing is that when I move the sprite around I get
> parts of the other frames showing nastily, like the frame above the sprite's
> current frame or the one to the left of it. Let me know if I'm doing
> something wrong. I'm not totally sure I should be using blit's area rect for
> changing the animation's frames.
>
are you erasing to the background between frames?
whatever you drew on a screen buffer will still be there after
flipping or whatever. This can be a good thing if you want to do dirty
rects (i.e. save time not redrawing stuff unless you have to). I don't
use pygame sprites at all, but they might automatically erase or
whatever