Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: xenogia on Mon 15/09/2003 14:13:05

Title: Crossfading
Post by: xenogia on Mon 15/09/2003 14:13:05
Is there a way so the music crossfades in before the text box comes up.  I have tried several different ways but none seem to be successful. Can someone please help me with this problem?
Title: Re:Crossfading
Post by: SSH on Mon 15/09/2003 14:16:41
Which text box comes up when? The problem description is a little vague!
Title: Re:Crossfading
Post by: xenogia on Mon 15/09/2003 14:29:19
Text box comes up before the music fades (after fadein) and then fades after the textboxes dissappear.
Title: Re:Crossfading
Post by: SSH on Mon 15/09/2003 14:37:38
Do you mean that you have a textbox programmed to come up in your "after fadein" interaction?

You could move your textbox script to occur in the repeatedly execute on the following condition

if ((GetCurrentMusic() == *insert new track number here*) && (GetGlobalInt(23)==0)) {
// do your textbox here, then..
SetGlobalInt(23, 1);
}

Or alternatively, use a timer to wait a bit after graphics fadein before doing the text box
Title: Re:Crossfading
Post by: xenogia on Mon 15/09/2003 15:05:11
Yeah i figured out that if u use Wait (100); before you put the message box's up its fine :)