i used the same as urs for now. and not the default one. anywys here is the code

Code:
function Camera_OneFrame_Function()
{
   //normal contents of camera action while loop
   if(key_w)  camera.x += 5 * time_step;
   if(key_s)  camera.x -= 5 * time_step;
   if(key_a)  camera.y += 5 * time_step;
   if(key_d)  camera.y -= 5 * time_step;
  while(freeze_mode>0){wait(1);}
}

action Normal_Camera_Action()
{
	 while(1)
	 {
	 	//default lite-c camera
	 	Camera_OneFrame_Function();
	 	
	 	wait(1);
	}
}

function pause()
{
	if(freeze_mode == 2)
		freeze_mode = 0;
	else
		freeze_mode = 2;
}

....
....
{other functions}
...
...

function main()
{
 //set video
 ..
 //set mouse
 ..
 
 //load level
 ..
 wait(2);

 Normal_Camera_Action();
 ..
 ..
 on_p = pause;
 ...
 call_functions();
}




A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook