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 / calling commands in different times

Author
Message
Mulderman
20
Years of Service
User Offline
Joined: 8th Jan 2004
Location: C:\\
Posted: 7th Mar 2005 22:10
hi, im playing with cameras now and i want to move camera like this:
For example:
Move camera in direction it's facing and after some seconds, like 5 seconds or 10 minutes move camera right. But i dont know how to make it, i know in QuickBasic was a command "On Timer GoSub" or smthng. But how to make it in DarkBASIC?
I hope u understand my little problem.

http://forum.thegamecreators.com
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 7th Mar 2005 22:48 Edited at: 7th Mar 2005 22:49
Save the value of Timer() in a variable. It is calibrated in milliseconds, so 1000 units = 1 second.

The actual value is meaningless, you simply need to use it to calculate the time differences.

BatVink
Mulderman
20
Years of Service
User Offline
Joined: 8th Jan 2004
Location: C:\\
Posted: 7th Mar 2005 23:07
thx, i try this

http://forum.thegamecreators.com

Login to post a reply

Server time is: 2024-11-13 19:58:13
Your offset time is: 2024-11-13 19:58:13