Log In  


How would i go about, writing a script to change rooms on button press?
I tried to use an old "switch room" script object but it doesn't do what I want.

Switching multiple rooms on a button press, with the same button. Like arrow right to go forward and arrow left to go back.

Hope this make sense.
Thank you.
/D



As far as I can tell there isn't any fucntion to change room from a script.

However I have been solving this problem, by placing a doors in the room with the desired destination, and moving them off screen, then I have a script that teleports the appropriate door ontop of a player when I want to change room.

It's not ideal, but it works.

You can use the get_actors function to find a move doors in the room.


@oueouiiaoo

Could you pls post this in a cartrage. So I can
take a look under the hood :)
Thank you.



[Please log in to post a comment]