View Single Post
Old Apr 6th, 2005, 9:33 PM   #5
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,827
Rep Power: 5 Sane will become famous soon enough
What's IIRC pygame?

And look at the title_screen.py up in the first post. There are like 4 classes that all share similar code right off the bat.


self.image, self.rect = load_image('logo_jdi.bmp')

Can be transparent by:

self.image, self.rect = load_image('logo_jdi.bmp', -1)

But I try that it when it's not inside a class:

char_draw = pygame.image.load(pic_load)

--> char_draw = pygame.image.load(pic_load, -1)

And it doesn't recognize the argument, because it's a whole different function meant to just display a picture, and not use it as a game object.
Sane is online now   Reply With Quote