Everyone says to use .convert() on surfaces to speed up animations (which will be an issue with my game because it will be and mmo...to some extent, so it might have a dozen or a couple dozen characters moving at the same time), the problem is that my transparent png images work great without convert but as soon as i use .convert() all of the transparent backgrounds suddenly become white. Do i need to sample the color and make it transparent using color_key?
views:
20answers:
1
+1
Q:
Pygame - calling surface.convert() on animated sprite causes transparent background to become white.
+1
A:
convert_alpha
should do the trick
http://www.pygame.org/docs/ref/surface.html#Surface.convert_alpha
jellybean
2010-09-01 14:49:08
Yep, that did it, thanks.
anomaly_a
2010-09-03 07:47:58
Is there a reason you're not upvoting this answer? Failing to do contributes to clutter on the "unanswered questions" list.
ssokolow
2010-09-04 21:35:05