Skip to content
Discord

Get help, share scripts, and follow updates with the PowerKuy Community.

Join the server

Tile Namespace ​

Functions ​

FunctionParamsReturnDescriptionExample
tile.getTilex:number, y:numberTileGet tile at coordinatestile.getTile(GetLocal().posX//32,GetLocal().posY//32)
tile.setFgTile, itemid:number-Change foreground visuallytile.setFg(tile.getTile(GetLocal().posX//32,GetLocal().posY//32), 7188)
tile.setBgTile, itemid:number-Change background visuallytile.setBg(tile.getTile(GetLocal().posX//32,GetLocal().posY//32), 18)

The same two functions are also registered as globals. Both forms take the tile table first and the item ID second.

FunctionParamsReturnDescriptionExample
setFgTile, itemid:number-Change foreground visuallysetFg(getTile(10,5), 7188)
setBgTile, itemid:number-Change background visuallysetBg(getTile(10,5), 18)

Join our community for support and updates!