Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Returning play time value, in strftime format
BlueLemming
post Oct 28 2011, 10:19 PM
Post #1



Group Icon

Group: Member
Posts: 2
Type: Musician
RM Skill: Beginner




Basically I want to try to modify the internal clock script (found here) into having day/night work off the game's playtime rather than the computer's clock time. I'm experienced in other coding languages but this would be my first attempt at modifying/writing RGSS.

Thanks in advance!

Edit: Right now I'm doing the framecount/framerate to get total time played in seconds, I'm guessing this is the only way to do this?

This post has been edited by BlueLemming: Oct 28 2011, 10:43 PM
Go to the top of the page
 
+Quote Post
   
Tsukihime
post Oct 29 2011, 08:21 AM
Post #2


Level 25
Group Icon

Group: Revolutionary
Posts: 559
Type: None
RM Skill: Undisclosed
Rev Points: 25




That seems to be the most straightforward way to do it without creating new variables and dumping them into save files and making sure that it's correct when you load it etc.

Since frame rate and frame count are consistent with each other, as opposed to real-time vs frame rate.

This post has been edited by Tsukihime: Oct 29 2011, 08:23 AM


__________________________
My Scripts
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th May 2013 - 01:41 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker