this is were it will go
void GameLoop(){ if(GamePaused){}else if( timeGetTime() > start_time + faster ) { PlaySound("MenuKnopka.wav ", hInstMain, SND_ASYNC | SND_FILENAME ); Move(0,1); start_time=GetTickCount(); } elseif (Level = 10){NewLevel();}}int NewLevel(){int faster;//int Level;if( StartTime + faster < timeGetTime()){PlaySound("MenuKnopka.wav ", hInstMain, SND_ASYNC | SND_FILENAME ); --faster; // Level = 0; Move(0,1); start_time=GetTickCount(); } }
I need the timer to work like this
when timer hits 1000 then move image do that tell level = 10
then when timer hits 500 then move image do that tell level = 10
so how would WM_TIMER work very well here I cant have it in my winproc becaus buttons are being hit and when buttons are hit it stops the timer understand
[edited by - kingpinzs on February 22, 2004 11:28:46 PM]