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.

DarkBASIC Discussion / help with making timer and curve in matrix

Author
Message
muphesto
21
Years of Service
User Offline
Joined: 30th Oct 2003
Location:
Posted: 1st Nov 2003 16:37
can someone help me? i want to make a timer for my game that starts when my ship starts flying through a cave and stops when you crash.im using a straight random matrix for the cave and would also like to know if someone can tell me how to make it curve?

i wish to display the timer at the top of my screen well flying but i dont know if it would be better to display distance gone as the ship can speed up. any help or ideas would be very much thanked
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 2nd Nov 2003 04:51 Edited at: 2nd Nov 2003 04:51
Ok, for the timer, do this:


And to stop it when the ship crashes, try this:


Note that the end_time# and the time_taken# will represent the milliseconds that have gone by since just before your main loop started.
Note that the start_time# is a representation in milliseconds of how long your computer has been turned on for.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2025-05-21 09:42:34
Your offset time is: 2025-05-21 09:42:34