Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Yo Mama! on Tue 03/06/2003 18:13:44

Title: Need BACK Button
Post by: Yo Mama! on Tue 03/06/2003 18:13:44
What would the script be for a hotspot that goes back one room when its clicked? I made a room that is help for the game, and I want the Back hotspot to go to whatever the room the player was in before they went to the help room.
Title: Re:Need BACK Button
Post by: Scorpiorus on Tue 03/06/2003 18:51:49
Insite hotspot interaction place the next code:

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

but actually if I need a help screen I would make it a GUI instead. :P

-Cheers