I am trying to design an ingame clock. Normally I would just go by the current time or played time but I need the world time to be separate from "real life" time. I am thinking somewhere along the lines of 2 real-time hours to complete one 24 hour cycle in the game.
I know that I will have to store the time locally/convert real-life time to game time and I can handle that, no problem. I am just stuck on how to display it as a clock.
I was thinking of setting up a text that would divide the currentTime variable by 3,600 to equal each one hour. Then use the remainder and divide that by 60 to get the minutes. I could set a cap on the time so it would reset to 0 after 43,200 seconds (12 hours). I could also set a boolean for AM/AP so that I can keep track of the day/night cycles.
Blah, I think I am on the right track. Anyone have an opinion or experience making something similar?