[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] [pygame ] Having trouble with RenderUpdate
- To: Pygame Mailing List <pygame-users@xxxxxxxx>
- Subject: [pygame] [pygame ] Having trouble with RenderUpdate
- From: KKarasu <catsareninja@xxxxxxxxx>
- Date: Mon, 15 Sep 2008 01:47:58 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sun, 14 Sep 2008 20:51:49 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=tTaKLpNyJEAGIlHSMdcl/w7Wv12HDtuNEssm1ISJpGs=; b=ckNyefZKrtzSUabcL0JtDG+/61LAnZo5wt8cvol14nmmKZBc6+eXvzlZFP+EXJrak6 k/qea2ysafzbDiLMp/UhXdpBAv2agq+9UwzLHz2uTHHmPXbcgkeLu823RibSIRXDRjUb oQAx3j/gDtcgwP/NGT04O06Hj+kpe+9d7I9zA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=CUDgYbvMF5GKTF9+tUdhDehUwz+B0SZAMOC7WMD+rzxVkEv/aT1qICYjkjG7Ugi2wa BdTGLrumtOTdpeOwNGzQuwF5X1XKkeeOFUyMrdXAIaqTJuei2GldC2CwmnYfNjGSnLHV Ln5cvDTVHMR3S7G9hzMRMCjLwJIOfquUXvcR8=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Thunderbird 2.0.0.16 (Windows/20080708)
Hi there!
Im new in this mailing list thingys i just didnt get the reply from the
server to authenticate, so i am sending it again but with [pygame] on
the subject i didnt send it the first time.
After reading a couple of tutorials i just don't get how to clear just
the area the sprite changed.
exemple: i have an arrow, i blit it on the screen with a group.draw, and
i dont know how to just update the area that changed by this method. i
could blit again the entire screen, but i just want that spot, that way
i dont have to blother bliting a hole lot of other stuff.
# this is just the method part the rest is uninportant
def start(self):
self.rect=(self.image.get_rect()).move(self.posicao[0],self.posicao[1])
# this moves the object by messing with the rect
a=R_up.draw(screen) #this draws the group sprites (R_up=
thats RenderUpdate group)
#iundestand that returns the changed areas so it says in the docs i
should pass it to pygame.display.update
#so thats what i do
pygame.display.update(a)
so it doesnt work.
can anyone explainme how to do this?