Leaving a room


The door is open and now your character has to go out. But first we need a place he can go to. So once again create another room put some random background image into it and edit the walkmap so there is a walkable area.

Back to the first room and to its walkmap. Rightclick the coordinate where the walkto command of the door points to when the door is open. Select to edit the walkmapscript. In this script you enter :

beamto (self ; SecondRoom ; x ; y ; lookto)

X and Y have to be free on the second rooms walkmap or nothing will happen! Lookto is an optional value between 1 and 4.

Repeat all steps in the second room so your character can go back to the first room.