PDA

Click to See Complete Forum and Search --> : need a little favor here


Pickleloaf
Jan 18th, 2001, 04:12 AM
Well, it's worth a try...
I'm making a game where the player sprite needs to change color every now and then. I don't know enough directX to do that palette scrolling stuff (I can barely make a title screen). I do have an idea for an alternative, but I have no idea how to make it...

Can someone make me a sub that takes in a monochrome bitmap mask and paints it onto a surface (eg, form, picturebox) at the desired X Y co-ordinates, so that all white pixels become transparent and all black pixels become a certain color, as indicated by an argument.

You'll be doing me a huge favor, and I'm sure many other people will find use for it.