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

[pygame] Problems with moving animated images



I forgot to show the sprite's move method, so here goes:
 
    def move(self, pos):
        self.frect = self.frect.move(pos.getX(), pos.getY())
        self.rect = self.rect.move(pos.getX(), pos.getY())
        x = self.pos.getX() + pos.getX()
        y = self.pos.getY() + pos.getY()
        self.pos.set(x, y)
 
Juha Salo