CreateScreen(string image filename, string polygon)
The function shows the image background on the screen and sets the area where the player can walk.
//The main function
function Main()
{
//Title of the Room
SetTitle("Game Title");
CreateScreen("title");
FirstScreen="screen1";
}
Note in the example above we didn't pass the polygon parameter, It's because we are creating the title screen. Here is an example with all parameters.
//Image background and walkable area
CreateScreen("bedroom","107,207,246,207,257,192,511,194,518,209,648,212,656,193,690,193,788,393,15,393,107,207");
Get the latest version here.