time_factor

This variable affects the internal timebase time_step . When set below 1, a slow motion effect is achieved - above 1 it's a quick motion effect.

Range:

0.01 .. 10.0 (default: 1.0)

Type:

var

Example (lite-C):

while(1)
{
  if(key_s)
time_factor = 0.5;
else
time_factor = 1;
my.skin += time_step / 16; my.skin %= 16; // 16 Skins wait(1); }

See also:

time_step, time_smooth, fps_max, fps_min, fps_lock, total_ticks, total_frames, wait

► latest version online