Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Hoffenlarft on Sat 29/04/2006 05:26:56

Title: Help with my script
Post by: Hoffenlarft on Sat 29/04/2006 05:26:56
   My problem is this: I have a room with the following script (room8):

--------------------------------------------After Fade In---------------------------

if (GetGlobalInt(0)==4) {
  SetMusicRepeat(0);
  Wait(60);
  oPuertad.Visible = true;
  Wait(20);
  cDika.Walk(38, 163, eNoBlock, eAnywhere);
  cEgo.Walk(60, 163, eBlock, eAnywhere);
  Wait(40);
  oPuertai.Visible = true;
  Wait(20);
  cDika.Walk(1, 163, eNoBlock, eAnywhere);
  cEgo.Walk(2, 163, eBlock, eAnywhere);
  Wait(10);
  SetGlobalInt(0, 5);
  oAct1.Transparency = 100;
  oAct1.Visible = true;
  oAct1.Transparency = 90;
  Wait(3);
  oAct1.Transparency = 80;
  Wait(3);
  oAct1.Transparency = 70;
  Wait(3);
  oAct1.Transparency = 60;
  Wait(3);
  oAct1.Transparency = 50;
  Wait(3);
  oAct1.Transparency = 40;
  Wait(3);
  oAct1.Transparency = 30;
  Wait(3);
  oAct1.Transparency = 20;
  Wait(3);
  oAct1.Transparency = 10;
  Wait(3);
  oAct1.Transparency = 0;
  Wait(120);
  oAct1.Transparency = 10;
  Wait(3);
  oAct1.Transparency = 20;
  Wait(3);
  oAct1.Transparency = 30;
  Wait(3);
  oAct1.Transparency = 40;
  Wait(3);
  oAct1.Transparency = 50;
  Wait(3);
  oAct1.Transparency = 60;
  Wait(3);
  oAct1.Transparency = 70;
  Wait(3);
  oAct1.Transparency = 80;
  Wait(3);
  oAct1.Transparency = 90;
  Wait(3);
  oAct1.Transparency = 100;
  Wait(100);
  cEgo.ChangeRoom(9);
}

   Now, I don't know what did I do, but the thing is that when the script reads the cEgo.ChangeRoom(9) the room appears to change to the same room (room8), instead of cEgo.ChangeRoom[9] it would be cEgo.ChangeRoom[8].
Could you help me please?
Title: Re: Help with my script
Post by: Candle on Sat 29/04/2006 06:01:09
Is there something in room 9 sending him back to 8? I did that onetime .