A question about wait frames

Started by Sin86, March 21, 2013, 12:40:40 pm

Previous topic - Next topic

Sin86

I got a question about frames and seconds in real time. For those who know, how many frames would 1 full second be all together? I do not think it is 60 because I think I once did a test a long time ago and an event that waited 60 frames vs one second on a clock and the event triggered before the next second did.

So, how many frames would 1 full second take?

Zexion

March 21, 2013, 01:10:06 pm #1 Last Edit: March 21, 2013, 01:13:55 pm by Zexion
Hmm... let me check. Until now, I was fairly certain that 1 second = 20 frames, but your post makes me wonder.

Edit: No, it is definately 20 frames. Are you sure you are not confusing it with minutes? A Minute would be 1200 frames. One full second, though, is definately 20 frames.

Blizzard

Keep in mind that this goes for events only. The real frame rate is actually 40 (also in the scripts), but events are only checked every other frame.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Heretic86

... which explains how they can do:

@wait_count = wait*2

Real Frame Rate is 40, but Animating Frame Rates is 20.
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)