Archived

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

Slowing down DirectInput

This topic is 5590 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

When I run my program on a different computer then the dude on screen walks faster when the arrow keys are held down. On my computer he walks slower. Is there a best way to slow down how many times per second the keyboard is read?

Share this post


Link to post
Share on other sites
why dont u have ur characters move with time, ie: have characers move 60 pixels per seconds _instead of_ 60 pixels per frame. then ur animations would be the same on all computers.



" type type type...??... delete delete...!...type...??!!??...delete delete..!!!!!!...AHHHHHH"
Al
**MY HQ**

Share this post


Link to post
Share on other sites
quote:
Original post by alfmga
why dont u have ur characters move with time, ie: have characers move 60 pixels per seconds _instead of_ 60 pixels per frame. then ur animations would be the same on all computers.



" type type type...??... delete delete...!...type...??!!??...delete delete..!!!!!!...AHHHHHH"
Al
** MY HQ**




Or just limit your frame rate. Make it so the game only runs at 30 FPS for example, then make it so that the character only moves 3 pixels per frame or whatever.

Mike

Share this post


Link to post
Share on other sites