0 Members and 1 Guest are viewing this topic.
How do I draw a sprite so that the white part of the image isn't transparent?
with the pt-Mask(x,y,sprite) command, you can take a masked spritee and draw it on the screen so that certain parts are white, certain parts are transparent.How a masked sprite works: there are two parts; the normal sprite and it's back buffer sprite. the front sprite defines what is black and what is white; then the back buffer decides what is filled white, and what is transparent. a black dot on the front buffer is always black (in monochrome mode, no grayscale) if a dot is blank in the front buffer sprite, then if there s a pixel behind it that is black it will show up filled with the pt-mask() command.a sprite data like this (in binary -- easier to visualize)1100000000001100if the first byte is front buffer and the second is back buffer, then the first two pixels drawn will be black, the next two transparent, the next two filled white, he last two transparent.if you still don't understand, look in the axe parser documentation for a better idea.
Second buffer 1 0 First 1 Black GrayBuffer 0 White Transparent