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

[pygame] Alpha blitting problems...answers anyone?



Hi all.

I'm having trouble blitting some simple alpha surfaces. In my game, I
do this to get an alpha:

image=pygame.Surface((x,y),SWSURFACE|SRCALPHA,32)
image.set_alpha(128)
image.fill((128,83,83))

so i should have a red that blends 50% with another surface - then I
blit it with

screen.blit(handle.menu[index].highlight,(x,y,w,h))
pygame.display.update((x,y,w,h))

- but i get a solid block of red. What am I doing wrong?

Sparky

-- 
Science is open source religion