Go to another room upon interacting with an object

Started by mawilbolou, Sun 01/12/2024 20:05:23

Previous topic - Next topic

mawilbolou

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?

I'm Matt, I work in the Games Industry and I'm a hobbyist game developer.

eri0o

You would use the ChangeRoom function, it is documented in the ags manual here.



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.



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.

Khris

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.

mawilbolou

@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.
I'm Matt, I work in the Games Industry and I'm a hobbyist game developer.

SMF spam blocked by CleanTalk