Posted: 4th Oct 2011 16:56
Hello,

How can we hide the black color of a sprite ?

Thank !
Posted: 4th Oct 2011 17:35
Make your sprite with a graphics program that can give an image an alpha channel, or transparency.
Posted: 4th Oct 2011 20:48
In the long run using alpha channels is probably better, but you can also use a flag when loading the image to set black as transparency. I forget the exact method but its listed in the help for load image.
Posted: 4th Oct 2011 22:53
Ok, thank you !!

Posted: 5th Oct 2011 23:01
loadimage("troll.png",1)

The ,1 makes the black color transparent. Red=0:Green=0:Blue=0

To have som blackness in the sprite, use Red=1:Green=1:Blue=1 color pixels in the image.

Or use transparent sprites, abit harder if you ask me..


oh, you seem to have a dead pixel on your screen, look -> .
Posted: 6th Oct 2011 1:28
Just download Paint.NET then use the magic-wand tool to cut out the bits that you want to make transparent.