The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: Lunais on December 30, 2006, 12:25:43 PM

Title: Wait by seconds
Post by: Lunais on December 30, 2006, 12:25:43 PM
The Wait command measures Frames, and not seconds.

Is there a way to measure the wait time by seconds, or am I going to have to find the framerate of the game and time it with that?
Title: Re: Wait by seconds
Post by: Snailer on December 30, 2006, 12:46:02 PM
10 frames is one second...

If you need it.
Title: Re: Wait by seconds
Post by: Reives on December 30, 2006, 04:59:35 PM
Not on every computer. It also varies if the comp's processor is busy or not, so x frames = x seconds doesn't really work. :/ I've been wanting a feature liike this too but haven't found any.
Title: Re: Wait by seconds
Post by: Snailer on December 30, 2006, 05:12:09 PM
Yeah i see now..
<.< that could mess my game up at someone else's pc if i use some things based on a waiting time ??
Title: Re: Wait by seconds
Post by: Me™ on December 30, 2006, 07:20:36 PM
No your both wrong XP.

Wait frames are constant, FPS or Graphic Frames not. However Reives IS right that a slow pc could alter that, as the time goes slower (lagg). But it are only fractions. YOu won't notice it until after 30 seconds or so.

YOu could use Time.now.sec to measure how meany seconds have been gone etc.
Title: Re: Wait by seconds
Post by: Reives on December 30, 2006, 09:03:24 PM
Ah I see, I guess I meant FPS then. But although only in fractions, it's still quite noticable in things such as a "music video" I'm doing, as some things are suppose to be colinear with the music. Hence I still wish for a script or something that could 'wait-by-seconds'.