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.

2D All the way! / In-game Clock

Author
Message
Saiochi
17
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Under your bed
Posted: 28th Dec 2007 05:19


That is my in-game clock program, thus far anyways. I am trying to figure out how to use a Float instead of Int to get the clock to resume when it's not being loaded by the program (This clock will display in a menu, but not all the time.) I found out how to get the minutes to resume, but the seconds are kind of blocking me right now. Sorry for the shoddy description, but it's kind of hard to explain

If anyone did get what I'm looking for however, feel free to help me out

If you have X-ray vision, can you see through your own eyelids?
flashing snall
18
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 28th Dec 2007 05:33
just take out all the sleep commands.... idk, when i tried it, i got nothing, once i took out the sleeps, it worked fine..


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroupproductions.com/
Saiochi
17
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Under your bed
Posted: 28th Dec 2007 05:44
The sleep command was to debug, to see if the clock resumed accurately after not being displayed/used for 2 minutes. Sorry I forgot to take it out, but if you type in a number that would leave a remainder when divided by 60 (To get the minutes), the seconds are not carried over.

Say you put SLEEP 125000, when the clock resumes the time will be displayed as 0:2:0, when it should display 0:2:5. Hope that helps to clear up what I'm talking about here.

If you have X-ray vision, can you see through your own eyelids?
Roxas
18
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 28th Dec 2007 15:26
Try to use Wait 2000 instead of Sleep and see if it works
And why this is in 2 Dimensional Chat?


Click For Details!

Saiochi
17
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Under your bed
Posted: 28th Dec 2007 21:32
Thanks for the replies and sorry for posting this in the wrong forum, it was late for me.

@WindowsKiller - I know this is wrong, I was hoping someone had some insight on a better way to program this clock. I was thinking maybe use floats instead of integers then use the remainder of GSEC/60 to get calculate the seconds? Given it wouldn't be 100% accurate, but who is really going to sit there and watch the clock and run tests?

Thanks for all the replies so far.

If you have X-ray vision, can you see through your own eyelids?
Saiochi
17
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Under your bed
Posted: 28th Dec 2007 23:37
Is there any Documentation on the MOD command, MY DBPro doesn't seem to have any...

If you have X-ray vision, can you see through your own eyelids?
Saiochi
17
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Under your bed
Posted: 29th Dec 2007 11:43
So couldn't I just use /60 instead of MOD 60?

If you have X-ray vision, can you see through your own eyelids?
Saiochi
17
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Under your bed
Posted: 29th Dec 2007 20:46 Edited at: 30th Dec 2007 08:13
Think I got the hang of it, mind checking my work?



If you have X-ray vision, can you see through your own eyelids?

Login to post a reply

Server time is: 2024-05-20 01:57:42
Your offset time is: 2024-05-20 01:57:42