Advertisement

timer Problem

Started by October 11, 2006 04:56 AM
1 comment, last by GameDev.net 18 years, 1 month ago
void TimerFunc( int value ) { yRot1 -= 5; if (yRot1 <=-130) yRot1=-130; { glutPostRedisplay(); glutTimerFunc(120,TimerFunc,1); } } above is my code,my facing problem was the object rotate at one time only after one clip,when i hit the second clip the timer wouldn't run. any solution.
Sorry, I don't quite understand what you mean by "after one clip" and "second clip" could you share a little more information about the problem?
Advertisement
your problem is that you are setting your timer variable to -130 immediately after your if statement i would think

This topic is closed to new replies.

Advertisement