Code: Select all
if(GetTickCount() - fpslimiter >= 15){
fpslimiter = GetTickCount();
DoWhatever
}
And that's it. The camera, well, it's slightly more complicated yet simple too, here's the code of it:
Code: Select all
camera->setPosition(vector3df(TargetPos.X -400*cos(-camPos.X/203.72), TargetPos.Y +200*tan(camPos.Y/203.72), TargetPos.Z -400*sin(-camPos.X/203.72)));
camera->setTarget(TargetPos);
I'm working on Beta 2 at the moment and I hope to release it today or tomorrow with some new graphical features and now it's day rather than night.