Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Fuchs on Sun 04/03/2012 18:47:57

Title: Death scenes
Post by: Fuchs on Sun 04/03/2012 18:47:57
Hello AGS worshippers!
I would like to know if there is a logic way of how to make the player restart at a certain point in the room once a death-scene occurred. I am thinking about something like Kings Quest 7. There a new room was created which basically showed “you just died”, an portrait of Rosella/Valanice and then an OK Button. Which is basically no problem. But how do I say AGS where the player starts out after pressing the “Ok” button?
And do i have to create a new "your dead confirmation-room" for each death scene i have?

Thank you very much and may god bless you upon response! ;-P
Fuchs
Title: Re: Death scenes
Post by: Mouth for war on Sun 04/03/2012 19:14:18
player.ChangeRoom(player.PreviousRoom); If I'm not mistaken this is what you're looking for?
Title: Re: Death scenes
Post by: Khris on Sun 04/03/2012 19:43:58
  SaveGameSlot(100, "death autosave");

  RestoreGameSlot(100);