I found the following code in the manual to fade objects out,
Example:
int trans = object[0].Transparency;
while (trans < 100) {
trans++;
object[0].Transparency = trans;
Wait(1);
}
But I can't seem to get it to do the opposite effect, ie, fade an object in.
Played around with it for a few hours but I'm kinda stumped. Anyone know how to do this?
Just replace the line "object[0].Transparency = trans" with "object[0].Transparency = 100-trans", that should work.
Thanks man, that works great.
Take a look at the tween-module. It contains a command called tween.transparency which is a simply shorter and includes more options for fading.