Color Transparency
#6

Thank you for your reply.

The scripting is not a problem but thinking for me in this moments it is. I'm sick (nothing serius just some temperature) and I just freeze with creating the system.

I can make this like I said in very stupid way that will take over 500 lines in my script and there will be many conditions wich will probably slow down the script.

I was thinking on something like this. First color that player choses is 100% with no transparency and it will be 0xCOLORCODEFF
And to make some variable like ChosenColor = 0xCOLORCODE
On this ChosenColor will not be any transparency level.

Now when player confirms that he did chose the right color the next thing is to chose the transparency of that color.

This part is just in words not scripted

Now lets say player choses 90% transparency and lets say that is BB
And to add something like this TransparencyLevel = BB;

It will be PlayerColor = ChosenColor + TransparencyLevel = 0xCOLORCODEBB

And still how to merge those two variables in one wich will be the color.

Or to make function like SetPlayerColor(color, transparency)

and it will be used like SetPlayerColor(0x000000, BB) and that will be merged in 0x00000BB. But how to merge two strings in one?
Reply


Messages In This Thread
Color Transparency - by Dujma - 19.03.2009, 08:16
Re: Color Transparency - by MenaceX^ - 19.03.2009, 09:39
Re: Color Transparency - by Dujma - 19.03.2009, 09:40
Re: Color Transparency - by Dujma - 19.03.2009, 12:48
Re: Color Transparency - by CracK - 19.03.2009, 12:56
Re: Color Transparency - by Dujma - 19.03.2009, 13:05
Re: Color Transparency - by MenaceX^ - 19.03.2009, 13:15
Re: Color Transparency - by CracK - 19.03.2009, 13:38

Forum Jump:


Users browsing this thread: 1 Guest(s)