19.03.2009, 12:48
I realy dont know how to do this. I know in very stupid way like to define over 100 colors and to use it in 100 different cases. Like when player choses the color and it will check the color and it will give the correct transparency level. There has to be easier way to do it.
Basicly what I'm trying to do is this.
like
0xFFFFFF??
This ?? to be replaced with transparency level that player choses.
I'm working on one GM and my brain just stopped. I have so much calculating and so many thing to do and on this I just freeze. I can't think and to came up with some color selecting system with transparency.
And this HexToInt and IntToHex I need to first come up with system to use them and that is where I need you help.
I'm making that first players selects it's color via text like "black" "green" or some other color. That was easy to make and the color is set to like if black 0x000000FF and when player selects the color than he must select the level of transparency. I know how to make that like this: if player choses 90% it will be 0x000000BB and that is much work to do with all the colors and all the transparency combinations.
So I need just some tips how to make such system. I'm not asking for code I'm just asking for help how to make the system, because I cant get any idea on my mind.
Thank you
Basicly what I'm trying to do is this.
like
0xFFFFFF??
This ?? to be replaced with transparency level that player choses.
I'm working on one GM and my brain just stopped. I have so much calculating and so many thing to do and on this I just freeze. I can't think and to came up with some color selecting system with transparency.
And this HexToInt and IntToHex I need to first come up with system to use them and that is where I need you help.
I'm making that first players selects it's color via text like "black" "green" or some other color. That was easy to make and the color is set to like if black 0x000000FF and when player selects the color than he must select the level of transparency. I know how to make that like this: if player choses 90% it will be 0x000000BB and that is much work to do with all the colors and all the transparency combinations.
So I need just some tips how to make such system. I'm not asking for code I'm just asking for help how to make the system, because I cant get any idea on my mind.
Thank you

