Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: AndersM on Sat 21/02/2004 19:51:47

Title: previous room?
Post by: AndersM on Sat 21/02/2004 19:51:47
Is there any 'go back to previous room' -feature?
Title: Re:previous room?
Post by: Scorpiorus on Sat 21/02/2004 20:01:31
There is a global variable - character[CHARID].prevroom that specifies the room CHARID was in before.

To load a prevoius room you can type in:

NewRoom(character[GetPlayerCharacter()].prevroom);

~Cheers
Title: Re:previous room?
Post by: AndersM on Sat 21/02/2004 20:13:24
Thanx.