okay, i've got my timer set up and it works. but the problem is i can't stop the timer
. i just want to change the camera view in a certain limit of time. i.e. i need to change the cam01 to cam02 within 5 seconds, and then cam02 to cam03 within next 10 secs. this is my code :
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
dbPrint ( "Please wait, loading..." );
dbSync ( );
dbSync ( );
JGC::Daddy = new JGC_DADDY();
JGC_CLOCK *Clock = new JGC_CLOCK();
JGC_TIMER *MyTimer = new JGC_TIMER();
MyTimer->Set(5*1000,1); // Five Second
cam01();
// our main loop
while ( LoopGDK ( ) )
{
Clock->Update();
if(MyTimer->DelayPassed(Clock->Time_New)){
cam02();
}
// update the screen
dbSync ( );
}
// return back to windows
if ( dbEscapeKey ( ) )
return;
}
i'm still a c++ newbie, can anyone help me please?