Re: RPG: Transparancy
>OS: Windows
>Ver: EU 2.2
>
>i need help with transparancy for one of my RPGs... How could i make it so
>that if the program reads the a certain color [say pink] how could i make
>it
>think its transparnt?
>
>hehe... here is a status report... just cuz i feel like saying it
>*Finished ( 39 ) tiles
>*Character Movement
>*Tile replacement on Character move-over
>*Music range
>
>-Thanks to Smoky for all his help!-
>
>~thanks and later~
That's easy.
For DOS;
1. bk_color(whatever) will make "whatever" the background color.
2. code your own bitmap drawing routine you lazy ass! J/K
simply DON'T draw the pixel in a bmp if it is the color you want to leave
out. AKA if bmp[x] != color then pixel(bmp[x],{x,y}) end if
For Win32;
do Nr. 2 for DOS, or use MaskedBlit from win32lib setting the transparant
color to 255,0,255.
Mike The Spike
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
|
Not Categorized, Please Help
|
|