Skip to content

tilemap: members

10 implemented, 0 reserved. Entries are sorted by name.

tilemap.animations: array

Runs on: client only. Origin: compatibility. Since: M14. Playground: no.

The animations of the map.

temp.n = map.animations.size();

Specification: client-rendering.md§6.7.

tilemap.clear()

Runs on: client only. Origin: compatibility. Since: M14. Playground: no.

Empties the map of a script: its image maps, animations and objects. Does nothing for the map of a control.

map.clear();

Specification: client-rendering.md§6.7.

tilemap.findanimation(name: string) -> tileanimation

Runs on: client only. Origin: compatibility. Since: M14. Playground: no.

The first animation with that name, or nothing.

map.findanimation("water");

Specification: client-rendering.md§6.7.

tilemap.findimagemap(name: string) -> tileimagemap

Runs on: client only. Origin: compatibility. Since: M14. Playground: no.

The first image map with that name, or nothing.

map.findimagemap("grass");

Specification: client-rendering.md§6.7.

tilemap.imagemaps: array

Runs on: client only. Origin: compatibility. Since: M14. Playground: no.

The image maps of the map.

temp.n = map.imagemaps.size();

Specification: client-rendering.md§6.7.

tilemap.layers: array

Runs on: client only. Origin: compatibility. Since: M14. Playground: no.

The 32 draw layers of the map.

map.layers[2].sortmode = "Y Axis";

Specification: client-rendering.md§6.7.

tilemap.loadtilemap(level: string, datablocks: string)

Runs on: client only. Origin: compatibility. Since: M14. Playground: no.

Loads a datablocks file and a level file into the map.

map.loadtilemap("a.lvl", "a.dat");

Specification: client-rendering.md§6.7.

tilemap.loadtilemapxml(path: string)

Runs on: client only. Origin: compatibility. Since: M14. Playground: no.

Loads a map description in XML into the map.

map.loadtilemapxml("a.gxml");

Specification: client-rendering.md§6.7.

tilemap.reload()

Runs on: client only. Origin: compatibility. Since: M14. Playground: no.

Empties the map and loads the files it came from again.

map.reload();

Specification: client-rendering.md§6.7.

tilemap.saveasimage(path: string, scale: number, exact: boolean)

Runs on: client only. Origin: compatibility. Since: M14. Playground: no.

Draws the whole map into a PNG in the script files folder; scale is pixels per tile, and exact uses the exact bounds of the objects instead of whole 64-tile units.

map.saveasimage("map.png", 2, false);

Specification: client-rendering.md§6.7.

Engine version 0.1.0. Built 2026-11-18.