Wrong execution of "startFade" or "schedule" ?
by Robert S. · in Torque Game Engine · 12/20/2005 (9:55 am) · 1 replies
Hi,
I have an application which has several animated objects, AIPlayers, which at certain times are faded by code:
%obj.schedule(0, "startFade", 700, 0, false);
My problem is that very often some of these animated objects are not faded, even though the above line has been executed. I don't know if it is a problem of the "schedule" or of the "startFade" functions, but I know that it isn't working always.
Has anybody had the same experience? Do you have any suggestions on how to solve it?
Thanks for your help.
I have an application which has several animated objects, AIPlayers, which at certain times are faded by code:
%obj.schedule(0, "startFade", 700, 0, false);
My problem is that very often some of these animated objects are not faded, even though the above line has been executed. I don't know if it is a problem of the "schedule" or of the "startFade" functions, but I know that it isn't working always.
Has anybody had the same experience? Do you have any suggestions on how to solve it?
Thanks for your help.
About the author
Creator of VisitorVille.com
Associate Orion Elenzil
Real Life Plus
just enter your fade command right into the console.
eg the following works for me:
1592.startFade(3000, 10, true);
oh, it looks like you just want to change "false" to "true" in your example there.
edit: use True to fadeOut, False to fadeIn.
www.garagegames.com/docs/tge/engine/classShapeBase.php#z170_4