The Daily Click ::. Forums ::. Klik Coding Help ::. RPG Clock Keeping the time
 

Post Reply  Post Oekaki 
 

Posted By Message

Logiq



Registered
  09/04/2007
Points
  120
18th September, 2008 at 19:26:21 -

I'm trying to keep a record of how long the player has been playing. I tried using the Time&Date object. The problem I am having with it is that when I save the time into my ini with ini++, it doesn't to load it back properly. Is my method correct and my execution wrong, or should I be looking for a totally different route for my solution?

 
Hello guys! I'm New! -- I've been new for a year now...haha

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
18th September, 2008 at 19:36:35 -

Just use regular variables instead and display using counters.

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
18th September, 2008 at 19:38:50 -

u can use a few counters instead of time&date.

 
Code me a sausage!

Logiq



Registered
  09/04/2007
Points
  120
18th September, 2008 at 19:46:25 -

Then I would use a event add 1 to the next number when the other hits 6. and reset the current one to 0

 
Hello guys! I'm New! -- I've been new for a year now...haha

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
18th September, 2008 at 20:03:43 -

no, just use storyboard controls. It has seconds, hours, minutes. Make each counter, it will reset seconds when it hits 60 by itself. And everything else.

 
Code me a sausage!

NeoMonkey

Finnish Army Fire Commander

Registered
  01/12/2006
Points
  243

VIP Member360 OwnerI am an April FoolPS3 Owner
18th September, 2008 at 20:19:55 -

If you want it to be clock like you can use Time&Date + counters. Now set the counters (hour, minute and (Seconds)) And just save and load the counters and put the counter data into time&date object, when loaded.

 
I have proven new mathematic formula to be true...

2D > 3D

Image


AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
18th September, 2008 at 23:15:39 -

can't you just always add to a single value every second and work it out the hours and minutes with some kind of forumla?

 
.

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
19th September, 2008 at 00:42:27 -


Originally Posted by Logiq
Then I would use a event add 1 to the next number when the other hits 6. and reset the current one to 0


That's not exactly a lot of work. Probably only 5 lines if you want to go up to days.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Logiq



Registered
  09/04/2007
Points
  120
19th September, 2008 at 00:55:11 -

nope not at all. What I ended up doing is just making three counters for seconds/minutes/hours and set then to the seconds/minutes/hours of the default timer object.

 
Hello guys! I'm New! -- I've been new for a year now...haha
   

Post Reply



 



Advertisement

Worth A Click