Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Duckbutcher on Mon 05/03/2007 19:43:03

Title: Full screen picture of inventory item problem
Post by: Duckbutcher on Mon 05/03/2007 19:43:03
It's a bit difficult to explain, but basically I've got an inventory item, and I want to be able to display a full screen picture of this item whenever the player 'looks' at it - sort of like the head of the navigator in MI. I was thinking of doing it as a whole new room - the player would then need to be returned to the room he was in originally afterwards.

I can't figure out how to do it though short of doing a whole load of variables to make sure the player went back to the right room after he'd finished looking at the item - because, being an inventory item, the player could look at it wherever he was.  So I'm stumped. Can anyone help?

Is there some kind of 'return' command which would send the player back to the room he was in when he looked at the item? Or is there an easier, alternate way around this problem?

Title: Re: Full screen picture of inventory item problem
Post by: Ashen on Mon 05/03/2007 19:46:02
RTM:
Character.PreviousRoom (http://www.adventuregamestudio.co.uk/manual/Character.PreviousRoom.htm).
Just use it in player.ChangeRoom when you're done looking at the item.
You might also need a couple of variables to store the coords in the previous room - give it a try.