RE: [pygame] Alpha channels and per pixel alpha

2009-06-10 Thread Bjorn Samuelsson
and blitting with transparency works fine for me without any trouble or special stuff. On Wed, Jun 10, 2009 at 2:11 PM, Bjorn Samuelsson wrote: Hey all, I'm trying to make a small 2d game and I'm wondering how you would go about to load a png-image with an alpha channel and keep it

RE: [pygame] Alpha channels and per pixel alpha

2009-06-10 Thread Bjorn Samuelsson
Ok. Could you possibly give me some short instructions on how to make a simple image with alpha channel so maybe I can see what I'm doing wrong. This is how i do it: take a regular image in photoshop, add an alpha channel, save as a SuperPNG with the "alpha channels" box checked. I'm not real

[pygame] Alpha channels and per pixel alpha

2009-06-10 Thread Bjorn Samuelsson
Hey all, I'm trying to make a small 2d game and I'm wondering how you would go about to load a png-image with an alpha channel and keep it's alpha values? I have confirmed the images alpha channel but when i load it in pygame it's alpha values are always 255. I've tried Surface.convert_alp

RE: [pygame] draw transparent representation of field of view

2008-07-21 Thread Bjorn Samuelsson
Exactly what I was looking for. Thank you! _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx

[pygame] draw transparent representation of field of view

2008-07-21 Thread Bjorn Samuelsson
I want to represent field of view for non-moving characters in my turn-based game. The problem is that I want it to change depending on the gameworld. i.e. If a tree is in the way of the FOV I want it to change accordingly. Any ideas how to accomplish this? thx