setpos

Script Reference Rooms

setpos (roommname ; x ; y ; true / false ; moveover) //Beginner

Used for : Rooms.

Parameters :

- roomname - Name of a room in your game.
- x,y - Walkmapcoordinates.
- true / false - True or False.
- moveover - UP, DOWN, LEFT , RIGHT.

Description :

Changes the camera position of a room. X and Y are walkmapcoordinates. In the roomwindow you can switch to the cameramode to look for your desired position. If "true" is added as a forth value the camera will go to the position immediatly without scrolling. The optional value "moveover" is supposed to immitate the effect known in games like Myst where the you turn around and the new view moves over the old one. [Variables] can be used as parameters for the roomname and the position.