tilemap: members
10 implemented, 0 reserved. Entries are sorted by name.
Implemented
Section titled “Implemented”animations
Section titled “animations”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.
findanimation
Section titled “findanimation”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.
findimagemap
Section titled “findimagemap”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.
imagemaps
Section titled “imagemaps”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.
layers
Section titled “layers”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.
loadtilemap
Section titled “loadtilemap”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.
loadtilemapxml
Section titled “loadtilemapxml”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.
reload
Section titled “reload”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.
saveasimage
Section titled “saveasimage”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.