drawTile() Function Reference

drawTile(integer frame, integer x, integer y[, boolean mask = false[, integer opacity = 100] ])

Renders an individual tile on screen. Frame refers to the frame number within the tiles sprite sheet and x,y refer to the raw tile co-ordinates. The optional mask parameter, if set to true, causes near-by characters to be clipped from this tile frame, preventing overlap when rendering. Used internally by the rendering engine and not really intended for direct use but is available for convenience.