Another Question on Timers

Talk about making games.

Another Question on Timers

Postby ingsan » Sat Apr 24, 2004 10:25 am

:D Hello ! My friends, today is Timers' Question DAY !

The Question today is : Is there a way to speed up a timer's Time, remembering that all the game should stay relative to Time ? :|
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby jazz_e_bob » Sat Apr 24, 2004 11:39 am

Very good question my friend. :)
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby ingsan » Sat Apr 24, 2004 11:44 am

:mrgreen:
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby jazz_e_bob » Sat Apr 24, 2004 12:07 pm

Access to a global framesPerSecond property perhaps?

Ummmm :?

My brain is sore. :cry: :cry:
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby ingsan » Sat Apr 24, 2004 12:10 pm

Ummmm :?
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby makslane » Sat Apr 24, 2004 6:20 pm

What? :roll:
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby ingsan » Sat Apr 24, 2004 6:29 pm

:mrgreen: Don't panic :mrgreen:

I have a timer with Time = A ms. I would like, on MouseDown event, this time to accelerate, like Time = A*2 or something like that :wink:
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby makslane » Sat Apr 24, 2004 6:51 pm

To make?
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby ingsan » Sat Apr 24, 2004 7:20 pm

Do you know the Hexacto's Lemonade.inc game ? or any other games like Sim City. You always have an option which enabes you to accelerate the time so as the game goes faster. That's on what I'm working on : Create a Main Timer that can be Accelerated while keeping all other timers present in game realive to it :wink:
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby makslane » Sun Apr 25, 2004 1:02 am

Good luck
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby jazz_e_bob » Sun Apr 25, 2004 2:46 am

:D :lol:

You want to change the speed that things happen without changing the frame rate.

Hmmmm

OK

You make a global real called gameSpeed.

Set it to 1.0.

Anytime you use a time-related event within the game you can factor in gameSpeed.

eg. CreateTimer, MoveTo...

Just ramblings really I'm sure there are limitations to this system.

seeya
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron