Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Timer based movement

Author
Message
nackidno
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Där solen aldrig skiner
Posted: 5th Jul 2008 01:20
Hi, I am in dire need of someone who knows how to make an object move in a certain speed depending on a timer.

The exact thing I want to be solved :

I want to have sync rate 0 without making the object move in ultra speed.

There is a way to do this, but I don't know how.

Please can someone guide me?

Thanks in advance // Nackidno

- Elias, Damezean, Nackidno, Wonderboy

AntocGames - http://antocgames.se.nu/
KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 5th Jul 2008 21:04
Like anything else in programming, there are a few ways to do it. A search in the forums for

"Time based movement"

Will give you a short list of threads on the topic, and a forum search for

"Timer based movement"

will give you a somewhat longer list.

I will however recommend using DLL #2 from the Matrix1Utils for it's HITIMER() function. This gives simple access to the hi resolution timer for greater accuracy, which should help keep movements and animations smooth.

If you find some code in one of those threads that you like, and you have trouble or some questions about it, post it in this thread and I/we will try to help.

nackidno
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Där solen aldrig skiner
Posted: 5th Jul 2008 21:39
I got it working. I did search first but it only showed me one result.. I think I used another search term then..

Thanks alot KISTech for helping me with the search.

- Elias, Damezean, Nackidno, Wonderboy

AntocGames - http://antocgames.se.nu/
KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 6th Jul 2008 00:28
No problem.

Login to post a reply

Server time is: 2024-11-15 20:00:41
Your offset time is: 2024-11-15 20:00:41