|
-
Senior Member
change alpha using integers
I have a simple script that fades a MC in or out.
All I want to do is decrease the alpha gradually by .1.
But it seems to be decreasing by many decimal places, rather than just -.1;
Is there a way to use only whole numbers like .8 as opposed to .723342?
Thanks, all.
Example:
var fade:Number = -.1;
box_mc.alpha += fade;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|