Hi, guys!
I'd like to make the entity be enlarged from one point to its normal size when it appears (maybe I press a key to make it show up) in my level. However, after I tried to use 'my.scale_x,my.scale_y,my.scale_z', the engine crashed as soon as it runs. The code is :
my.scale_x = 0;
my.scale_y =0;
my.scale_z = 0;
while(my.scale_x<1 || my.scale_y<1 || my.scale_z<1)
{
my.scale_x += 0.01 * time_step;
my.scale_x = minv(my.scale_x, 1);
my.scale_y += 0.01 * time_step;
my.scale_y = minv(my.scale_y, 1);
my.scale_z += 0.01 * time_step;
my.scale_z = minv(my.scale_z, 1);
wait(1);
}
Do anyone have a better idea of this matter??
Thanks very much!!!
Last edited by LavenderSs; 09/10/08 10:22.