🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

timer Problem

Started by
1 comment, last by GameDev.net 17 years, 8 months 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.
Advertisement
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?
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