Log In  
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

P#60775 2019-01-12 21:03

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.

P#60803 2019-01-13 23:59

@oueouiiaoo

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

P#60833 2019-01-14 23:57

[Please log in to post a comment]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-05-24 22:33 | 0.025s | 2097k | Q:18