Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Candle on Sun 11/12/2005 20:37:58

Title: The credits mod need help
Post by: Candle on Sun 11/12/2005 20:37:58
I want to go to a new room when the credits stop but I'm not sure how to do the coding as when I do


// script for Room: Player enters room (after fadein)
Credits[0].DefaultCreditFont=3;
   Credits[0].DefaultTitleFont=3;
   Credits[0].DefaultTitleColour=65000;
   Credits[0].DefaultCreditColour=15;
   Credits[0].Delay=1;

   Credits[0].AddTitle("Scripting by");
   Credits[0].AddCredit("SSH");
   Credits[0].AddImage(12, eCreditCentred, eCreditAlignBelow);
   Credits[0].AddTitle("Credit Module by");
   Credits[0].AddCredit("SSH again!");
   Credits[0].Run();
   character[EGO].ChangeRoom(1, 100, 50);

I get this error .

---------------------------
Adventure Game Studio
---------------------------
An error has occured. Please contact the game author for support, as this
is likely to be a scripting error and not a bug in AGS.
(ACI version 2.71.889)

in Credits (line 281)
from Credits (line 460)
from Credits (line 481)

Error: invalid overlay ID specified
Could someone help me with this .

Title: Re: The credits mod need help
Post by: Ashen on Sun 11/12/2005 22:23:18
You've already asked this in the Credit Module thread (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=23244), please don't cross post.