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 / What is the best way to do this

Author
Message
Falelorn
21
Years of Service
User Offline
Joined: 19th Jun 2003
Location: Canada
Posted: 2nd Sep 2003 10:20
I use DBPro

I want to set up a time compression system say 2 minutes of real time is 60 minutes of game time. Would this be best done via a function? I know I cant do it in the main loop because the delay would effect the movement.

this time compression would effect objects (sky box, sun model, etc). Have weather....

Would you control with functions, a DLL or something else?

A push in the right direction would be nice.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 2nd Sep 2003 11:23
surely you just need to use timer to find out when 2mins have gone by, then increment an hour variable which causes the sun to move in the sky/skybox to rotate/lower ambient light?


Falelorn
21
Years of Service
User Offline
Joined: 19th Jun 2003
Location: Canada
Posted: 2nd Sep 2003 11:28
ok, I though Timer pauses the program. I guess I missunderstood.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 2nd Sep 2003 11:31
no timer() just returns the internal system time, or something like that its when you use it with some other stuff you can pause your program


Login to post a reply

Server time is: 2024-11-25 06:26:43
Your offset time is: 2024-11-25 06:26:43