Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ninone on Wed 22/07/2009 07:38:46

Title: Noob question, trying a room...
Post by: Ninone on Wed 22/07/2009 07:38:46
If i made 100 room and I want to play the last, I have to play all the game?  ;D

Thank You again ;)
Title: Re: Noob question, trying a room...
Post by: Gilbert on Wed 22/07/2009 07:54:43
There are various ways to do this when testing your game. Below are some ideas:
1. Change the starting room of the player character.
2. You can use the funtion Debug() (http://www.adventuregamestudio.co.uk/manual/Debug.htm). If you are using the default game template, pressing Ctrl-X while running the game in debug mode (http://www.adventuregamestudio.co.uk/manual/Debuggingfeatures.htm) would prompt you for the room number to teleport to.

However, note also that you'll just teleport to a particular room using these methods. You won't have values of variables set accordingly and getting the appropriate inventory items, etc. as you would when playing the game straight from the beginning, so bear that in mind while doing the tests.

Title: Re: Noob question, trying a room...
Post by: Invalid on Thu 23/07/2009 01:10:49
What Gilbet V7000a said was perfectly acceptable, I just thought I would put in my two cents.
The number of the room is NOT neccecarrily the order you must play them in. The number is just a way of remembering what goes where. So another way to quickly go to a far room would be putting this code in a leaves right edge, or something similar

player.Changeroom(100);

hope that makes using AGS a little clearer
Title: Re: Noob question, trying a room...
Post by: TerranRich on Thu 23/07/2009 01:25:47
Just remember, it won't be as though you progressed through the game up to that point... it's a direct shortcut to enter that room, so if certain variables need to be set, make sure they are before entering the room.