if the png file has alpha channel transparency, just load the file with the transparency flag. (whether it uses alpha trans or not, still load the image this way) ie,
load image "myFile.png",ImageNumber,
1
if it doesn't have alpha channel transparency, you'll need to use:
set image colorkey R,G,B
...
before you load the image. ie, if the image uses pure Black (rgb 0,0,0) as the transparent color, then
set image colorkey 0,0,0
some use Magenta for the transparent color, so:
set image colorkey 255,0,255
...etc. (a specific rgb value for transparency is set upon file creation so you'll have to know the RGB value specific for that particular file. black and magenta are probably the most common colors used for transparency).
then, when you go to use the image as a sprite, use the
set sprite command with the transparency flag set to 1. ie,
set sprite MySprite, 0,
1
Virtual Nomad
AMD XP 1800+ (~1.6 Ghz) / 1.5 GB RAM
ATI Radeon 8700LE 128 MB / Windows XP