Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Lazarus on Mon 11/07/2005 11:13:48

Title: Playing Intro Scene
Post by: Lazarus on Mon 11/07/2005 11:13:48
I'm trying to setup my splash screen menu so when a player wants to watch the intro again they can via a button. And when this finishes they are returned back to the splash screen menu. eg...starts on room2 and finishes on room4 to go back to room1.

Here's my code so far it that helps (i'm using ags version 2.7)

//    Splash Screen
if (interface == SPLASH){
      
      if (button == 1){ // Play Intro
      StartCutscene(2);
      player.ChangeRoom (2);
Ã,  Ã,  EndCutscene();
// Allowing player to watch intro again.
// needs to stop at room 4 and return back to Splash Interface (room1)      
Ã,  Ã,  }      

      if (button == 2){ // New Game
         player.ChangeRoom (2);
// Starts from beginning (including Intro Scene)
Ã,  Ã,  }

Ã,  Ã,  if (button == 3){ //load Game
Ã,  Ã,  Ã,  GUIOff(OPTIONS);
Ã,  Ã,  Ã,  GetLucasSavegameListBox(RESTORE,1);
Ã,  Ã,  Ã,  GUIOn(RESTORE);
Ã,  Ã,  }
Ã,  Ã, 
Ã,  Ã,  if (button == 0){ // Quit Game
         QuitGame(0);
      }
   }

Thanks inadvance
Title: Re: Playing Intro Scene
Post by: Candle on Tue 12/07/2005 03:55:35
Well if your Cutscene returns the users to the menu when it is done just add a button to the menu and put
NewRoom (4);    4= your room
I have my Cutscene in it's own a room so thats how I do it .