Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Big Nerd on Sat 07/04/2007 22:16:22

Title: Go back one room
Post by: Big Nerd on Sat 07/04/2007 22:16:22
Hy,
in my game I have a map where you can choose to where you wanna go and there is an button for you to exit the map and go back to the room that you were. How can I make the game go back one room when you press the button?
Title: Re: Go back one room
Post by: strazer on Sat 07/04/2007 22:20:17
player.ChangeRoom(player.PreviousRoom);
Title: Re: Go back one room
Post by: Big Nerd on Sat 07/04/2007 22:21:44
Ok. Thanks! And... sorry for posting in the wrong forum.
Title: Re: Go back one room
Post by: strazer on Sat 07/04/2007 22:24:18
No prob! :)