Also that IF() setup is going to miss because you are using == and chances that your time_var is going to be exactly == is very small. EDIT* and the == compares var as/like int without decimals for comparing decimal parts of vars use < > not == or != ...

Code:
var time_passed_old =0 ;
var loop_count = 0;

 while(time_passed < 20)
   {
   	movie_camera1.pan -= 0.5*time_step;
   	time_passed += time_step/16;
        if(time_passed - time_passed_old > 0.5)
           loop_count += 1;

        switch(loop_count)
          {
             case 1: 
             time_passed_old = time_passed;
             str_cat((location_info.pstring)[0],"o");
             break;

             case 2:
             time_passed_old = time_passed;
             str_cat((location_info.pstring)[0],"c");
             break;
              
             // you should get the idea I don't have time to finish this snip //
             }
        wait(1);
          }




Last edited by Malice; 06/19/13 17:14.