Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: neb87 on July 19, 2006, 10:43:05 AM

Title: Time in Cms Menus
Post by: neb87 on July 19, 2006, 10:43:05 AM
How do u make a box that tells the time in a menu(not a message that u click on)
Title:
Post by: WarxePB on July 19, 2006, 10:35:02 PM
Probably the same way that you would display HP or MP or anything like that.

Of course, you can't display the actual time in the game. If you're using an in-game clock, it's easy to display, but there's no feature in RM2K/3 that allows you to view the system clock.
Title:
Post by: DragonBlaze on July 20, 2006, 02:24:17 AM
Well the actual time would be kinda pointless in a game. An in-game clock or a counter would be cool. For both, you pretty much wait 1 second, add 1 to a variable (seconds). Once seconds = 60, set seconds back to 0 and add 1 to minutes. When minutes = 60, set minutes equal to 0, and add 1 to hours, if its an in-game clock, if hours = 12 set it to 1, and keep doing that. If its just a counter, then just keep adding up the hours instead of setting it back to 1.

To display it, you basically have to split the two digit variables into two seperate single digit variables, if you don't know how to do this, I'll explain. Anyway, once you have the variables split, its very easy, just make a bunch of forks for if minutes = 0, show picture 0, if 1, show picture 1.

I guess you wouldn't even need to split the variables if you don't want to, you'll only need 60 switches for the minutes and seconds and 12 for  the hours.