ID:1850565
 
(See the best response by Kaiochao.)
Code:


Problem description:Are there any easier techniques to get this done? Well this isnt too hard itself even if i come up with my own way, but just wondering whats the best way

Best response
I think that demo may be a bit outdated. Nowadays, we can use animate() and alpha.

Basically, you have an object that covers the entire screen:
client
var obj/fader

// When you initialize fader,
fader = new
fader.icon = 'solid white.dmi' // make it icon_size so it tiles properly
fader.color = "black" // or any other color
fader.layer = 100 // or any other layer
fader.screen_loc = "SOUTHWEST to NORTHEAST"

screen += fader

// When you want to fade to solid color,
animate(fader, alpha = 255, time = duration)
// where [duration] is the time the fade takes.
// You can of course choose an easing mode, too.

// When you want to fade to transparent,
animate(fader, alpha = 0, time = duration)
In response to Kaiochao
yea thank you, i was hoping to see something with animate as im still new to what its possibilities are, or thinking of ones.

Anyway thank you thats beautiful i also didn't know you could do that with screen loc-"bla to bla"