View Single Post
  #6  
Old 01-31-2010, 01:52 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by scriptless View Post
The for loop for "j" is to loop through multiple things being drawn on-top of the polygon. I need 1 text, 1 image and the polygon to all fade at the same time. Looping "j" like that lets me set all the alpha on al lthe images to the same so they fade nice and neatly.

As for the i/100. Are you sure? I mean I did it last night, it worked so im confused.

PHP Code:
Example:
50 100 50% (0.50)
100 0% (0.00)
100 Cannot divide by zero 
How do you get I would only have a value of .01 at most? Like I said, it works almost flawlessly. My only problem is it jumps to (i think the minumum) value in the foor loop, and does not increase as the loop increases.
With
PHP Code:
for ( i=0i<1i+= .01 ) { 
"i" would never be greater than 0.99, 0.99 divided by 100 is 0.0099, which is barely anything.

I think you may have been trying to do:
PHP Code:
with (findimg(j)) { alpha i/100; } 
In order to adjust the Alpha of all the displays at once.
Reply With Quote