Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: mawilbolou on Sun 01/12/2024 20:05:23

Title: Go to another room upon interacting with an object
Post by: mawilbolou on Sun 01/12/2024 20:05:23
Hello.
I am just playing around in the sierra template,
i have the one with the orb in the centre...
I have setup two rooms,
im thinking of teleporting from room 1 to room 2 upon clicking on the orb.

Does anyone know how to set this up?

Title: Re: Go to another room upon interacting with an object
Post by: eri0o on Sun 01/12/2024 20:15:47
You would use the ChangeRoom function, it is documented in the ags manual here (https://adventuregamestudio.github.io/ags-manual/Character.html#characterchangeroom).

(https://i.imgur.com/uTrTou4.png)

The essentials is you select a type of interactions - say it's the "interacts". Then you click in the three dots button ("...") in the property grid once the orb is selected, which in the default room is done using hotspots.

Then in the room script that opens you just put the change room affecting the player character.

(https://i.imgur.com/gKMnsXA.png)

When running this means it would teleport by using the hand cursor from the sierra template. Of course this is all very simple, you may add some animation in some object that plays to show something, shake the screen before or whatever to make it more dramatic if desired.
Title: Re: Go to another room upon interacting with an object
Post by: Khris on Sun 01/12/2024 20:24:30
Please do the tutorial in the manual first, it covers all the basics:

https://adventuregamestudio.github.io/ags-manual/StartingOff.html

You can also press F1 in the editor to open the offline manual.
Title: Re: Go to another room upon interacting with an object
Post by: mawilbolou on Sun 01/12/2024 21:49:02
@Khris Yeah I am reading doing a mixture of reading the manual and doing online tutorials as well as asking a few questions.
@eri0o I am very happy that you could help me today :) Thankyou so much.