ID:265777
 
I've read the reference about MapColors() and am very confused.

How would I go about setting an icon's alpha values to zero, and then having it go up to 100% alpha?

Ex:
proc/fadein()
while(icon.alpha_value<=100)
icon.alpha_value++

I realize that's not how you do it, but I'm stumped!
Flame Sage wrote:
I've read the reference about MapColors() and am very confused.

How would I go about setting an icon's alpha values to zero, and then having it go up to 100% alpha?

Like so:

// make icon totally opaque
icon.MapColors(1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,0)

// make icon totally transparent
icon.MapColors(1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,1)


Lummox JR
In response to Lummox JR
Right but...
That wouldn't slowly fade to opque, it just seems to toggle it.

Is there a way to fade from totally transparent to fully opque?
In response to Flame Sage
Yes, it's pretty easy actually! It's something called the sleep() proc.