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

Re: [pygame] Sprite troubles




                        self.image, self.rect = loadImage('ground.bmp', -1)

I seem to recognize that function from somewhere. The pygame.org cookbook? If so, -1 triggers the function to set the colorkey by picking the color from the pixel at point 0,0 in your image. If your image is a solid color, this would result in an image of essentially transparent pixels.

Gumm