Yeah, but if your using Canvas, it'd be allot easier if you just used a double or a (real) variable to determine the transparency of the "erase" value. Call it c_trans for canvas trans
- Code: Select all
erase(0, 0, 0, c_trans);
Now, at Create Actor, have this code:
- Code: Select all
c_trans = 1;
Then of course, put the erase code in Draw Actor. Now, when an event is called, (In draw actor, use a variable to make the switch)
- Code: Select all
c_trans-=.02;
Now it'll slowly fade out to black.