Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
New forum theme up and running!
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
Time in Cms Menus
« previous
next »
Print
Pages: [
1
]
Author
Topic: Time in Cms Menus (Read 1730 times)
neb87
Zealot
Posts: 627
Time in Cms Menus
«
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)
Logged
WarxePB
Action Sue
Royal
Posts: 3,601
What killed the dinosaurs?
(No subject)
«
Reply #1 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.
Logged
Blog:
The Gigaverse
Twitter:
Initial Chaos
DragonBlaze
A Wild DB Appeared!
Royal
Posts: 3,329
(No subject)
«
Reply #2 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.
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
Time in Cms Menus