Beta 1.1 - $timeSchedule Problems
by Rob Sandbach · in Torque Game Builder · 03/02/2006 (4:29 pm) · 1 replies
[Edit] NB Title should read $timeScale problems!!! (Damn its late :P)
Hi,
Went to port some of my old code for a basic timeslowing item:
Worked fine on my last build of T2D (alpha4), but now I get some very strange issues. Seems to work if you start the function from within the console, as long as you don't leave the console. If you do, or if your scripts automatically call it (ie, when $timeslow != 1 and your console is closed) the game virtually seizes up, running at about 2 frames a second.
This was used on an unmodified build of T2D, with the demo shooter level.
Anyone know whats causing this?? Sorry if I've overlooked something.
Rob
Hi,
Went to port some of my old code for a basic timeslowing item:
function itemTimeSlow()
{
$timescale = 0.5;
schedule(2000,0,itemTimeSlowEnd);
}
function itemTimeSlowEnd()
{
$timescale = 1;
}Worked fine on my last build of T2D (alpha4), but now I get some very strange issues. Seems to work if you start the function from within the console, as long as you don't leave the console. If you do, or if your scripts automatically call it (ie, when $timeslow != 1 and your console is closed) the game virtually seizes up, running at about 2 frames a second.
This was used on an unmodified build of T2D, with the demo shooter level.
Anyone know whats causing this?? Sorry if I've overlooked something.
Rob
Torque 3D Owner Rob Sandbach
indiespring