Archived

This topic is now archived and is closed to further replies.

FPS and movement

This topic is 5777 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do i make is my model is not deaccelerating super fast when the fps is high? My code now: m_flastforwardspeed *= 0.9f; Edited by - Zoot on February 17, 2002 9:13:13 AM

Share this post


Link to post
Share on other sites
Put your movement code in a timed if statement.

eg

      

#define Interval 30;
Int StartTime;

If (TimeGetTime()-StartTime>Interval) {


// Update movement



StartTime=TimeGetTime();
}



,Jay


Edited by - Jason Zelos on February 17, 2002 1:03:21 PM

Edited by - Jason Zelos on February 17, 2002 1:04:27 PM

Share this post


Link to post
Share on other sites