EVILSOB i guess u wanted to say:

Code:
//
action Normal_Camera_Action()
{
   while(1)
   {
      Camera_OneFrame_Function();
      wait(1);
   }
}
//
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;
}
//
function Freezer()
{
   freeze_mode = 2;
   while(freeze_mode==2)
   {
            //do whatever you need to do, if it happens here.
            if(key_esc)  freeze_mode = 0;  //eg to abort freeze mode 
      //
      Normal_Camera_Action();   //draw another frame
      wait(1);
   }
}
//



calling normal_camera_action to draw another frame.

I tried both .. still not working. If i do a step over, it does pass the code.. but on running it doesnt.

Shinobi: i did try tat but tat also doesnt work.


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