Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: MoodyBlues on Tue 30/12/2008 05:29:03

Title: Skipping Cutscene Problem
Post by: MoodyBlues on Tue 30/12/2008 05:29:03
Like I said, I can't skip my cutscene.

Here's what my intro looks like so far:

function runIntro()
{
   
  StartCutscene(eSkipESCOnly);
  cKiri.Transparency = 100;
  cEgo.Transparency = 100;
object[0].Visible = false;
dDialog1.Start();
StopDialog();
  cKiri.Transparency = 0;
  cEgo.Transparency = 0;
cKiri.ChangeRoom(3, 70, 171);
cEgo.ChangeRoom(3, 144, 180);

  EndCutscene();
}

And this code is called in dDialog1:

    else if (xvalue == 2) {
      Wait(80);

      object[0].Visible = true;
     
      Wait(160);
     
      object[0].Visible = false;
     
      Wait(80);

      }

However, when I press the esc key, I only skip the dialog lines.

I appreciate any help I can get with this problem.
Title: Re: Skipping Cutscene Problem
Post by: Khris on Tue 30/12/2008 10:27:16
Like mentioned in the manual, Dialogs aren't started until after the function has finished.
Thus, you're effectively ending the cutscene before the dialog.
Since all other commands take more or less zero time to process, there really isn't anything to skip.

Does the dialog contain any actual choices? Because if it doesn't, use .Say lines instead and the cutscene including skipping will work fine.
Title: Re: Skipping Cutscene Problem
Post by: MoodyBlues on Wed 31/12/2008 01:11:43
Thanks!  Using .Say instead fixes the problem.