DoorTo

Object.DoorTo(string filename, integer x, integer y)

It indicates the object is a door to the screen defined by the first parameter.

  • string filename: Name of the source file placed in js/Screens.
  • integer x: x coordinate of the position Player.
  • integer y: y coordinate of the position Player.
function Main()
{
    DoorHall=CreateInvisibleObject("781,364,699,193,704,30,788,43,783,44,781,226,781,364");
    DoorHall.description="Door to the hall.";
    DoorHall.DoorTo("hall",190,185);
}

Get the latest version here.


It works on: