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.

Code Snippets / RealTime Functions Here...

Author
Message
MSon
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 25th Feb 2005 11:18 Edited at: 25th Feb 2005 11:39
GTA Style RealTime...
I'm using these in a game Im doing, And they Might be useful to SomeOne Else...
So here you go...

SetRealTime(Day,Hour,Minute) - Place this at the Start of your Programme to Set the Time
UpdateRealTime() - Place this at the Start of your Loop
Get24HourTime() - Get the Time in 24 Hour format as a String, Ie: Text 10,10,Get24HourTime()
GetDay() - Get the Day as a String, Ie: Text 10,20,GetDay()
RealTime.Update - This Indicates if An Update was Made, Ie: I Minute Has Passed




Edit:
To make it look like it does in GTA you need something like this
http://forum.thegamecreators.com/?m=forum_view&t=40880&b=1
Bitmap Fonts...
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 25th Feb 2005 17:54
Interesting. How about an additional function to set the rate that time "flies". For example, let 1 real minute equal 1 hour in the game. Suddenly, the possibilities become greater .

BatVink
MSon
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 26th Feb 2005 03:07
Thats a good Idea that

Change This Line

To This

And Add This in the Types at the End


To change the Time Speed, Simply Change [RealTimeSpeed]

I have this set up to my Sky Sphere, so i'll speed it up to see what it looks like then
MSon
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 26th Feb 2005 03:11 Edited at: 26th Feb 2005 03:14
Updated Code...

RealTimeSpeed - Sets the Speed of the Time..., (Default = 1000, Ie: 1 Second)


Login to post a reply

Server time is: 2024-11-23 14:41:20
Your offset time is: 2024-11-23 14:41:20