A Help With Transparency/if statements
Posted: Tue Dec 11, 2012 2:32 am
Hello again everyone. One of the powers used by the player of my game is available to use after a variable reaches a certain number. Once this variable hits 1000 an icon's transparency turns from .9 to 0. I want to make it so that the transparency of the icon goes down while the AvailableHologramTimer varaible goes up. How can I do this? Rather than doing something like this:
Is there some kind of formula that I can have so that the transparency goes down when the variable goes up.
- Code: Select all
if(AvailableHologramTimer==125)
{
transp=.8;
}
if(AvailableHologramTimer==250)
{
transp=.7;
}
Is there some kind of formula that I can have so that the transparency goes down when the variable goes up.