Time in Seconds?

Time in Seconds?

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
Von66341
Posts: 111
Joined: 10 Feb 2011, 03:00

Time in Seconds?

Post by Von66341 »

Hey!

Anyone know how I can the game time in seconds?

Say if it is 10minutes it will display 600 seconds?

I know os.date can give time in Hours:Mins:Seconds, however looking for all in seconds.

Thanks!
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Time in Seconds?

Post by AF »

1 second of gametime = 30 game frames iirc

assuming that there is no lag: gametime == realtime
User avatar
Niobium
Posts: 456
Joined: 07 Dec 2008, 02:35

Re: Time in Seconds?

Post by Niobium »

Spring.GetGameSeconds
Von66341
Posts: 111
Joined: 10 Feb 2011, 03:00

Re: Time in Seconds?

Post by Von66341 »

Thanks lots!
Post Reply

Return to “Game Development”