[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] Flickering Sprite



ok, actually i found the place where it is happening, at least according to
me :).

the flickering 'ghost' sprite only appears during a rotation. So the problem
probably is somewhere around here:

def update_rotation(self):
        oldcenter = self.rect.center
        pick = (self.angle % 360) / self.numsteps
        self.image = self.rotates[pick]
        self.rect = self.image.get_rect()
        self.rect.center = oldcenter

this code i got form one of the people on this list, can't remember who it
was. is there something wrong with it?


thanx,
gumuz


----- Original Message -----
From: "Guyon Morée" <gumuz@looze.net>
To: <pygame-users@seul.org>
Sent: Thursday, October 24, 2002 02:40
Subject: [pygame] Flickering Sprite





____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org