Map.save
From Spheriki
Saves the current map to the "maps" directory under the specified filename.
Contents |
Usage
- filename String. The name of the file in the "maps" directory to save to.
Examples
//Assume the map engine is already
//started before this code.
ChangeMap("base.rmp")
SetTile(10,20, 2, 3);
var Mappy = GetMapEngine();
Mappy.save("new.rmp")
Loads the map file "base.rmp" and changes the tile at (10,2) on layer 2 to the third tile index of the map's tileset, and saves the map to "new.rmp".
Notes
Requires the map engine to be running and a map engine object to be declared using the GetMapEngine() function.