Speed of Fadein() / Fadeout()

Started by Radiant, Fri 03/03/2006 12:49:20

Previous topic - Next topic

Radiant

Is there a meaningful way to convert between the time taken by a FadeIn/FadeOut call, and the time taken by a game clock cycle?

(specifically, if music is synchronized to a sequence containing some fades, how does one convert this to a sequence not containing fades but using SetTransparency and Wait commands, without losing sync in the process)?

Pumaman

The game cycles are paused while a FadeIn/FadeOut is in progress -- but in theory a fade speed of 1 should take 64 game cycles to fade, a speed of 2 should take 32 cycles, etc.

However this is not an exact science since as I say, game cycles are not actually running during a fade.

GarageGothic

This reminds me of something I was wondering about. Does AGS use a linear fade or some kind of sine curve (fading quicker at the far end of the fade)? I wrote my own script using a full screen black gui to make fades non-blocking and  more controllable, but it feels slightly different than AGS' own fade function. Is it just my imagination?

Pumaman


GarageGothic

So, just my imagination then  ;D
Thanks for the reply CJ!

SMF spam blocked by CleanTalk