showLayerOnEnter() Function Reference

showLayerOnEnter(string layer)

Sets an entire layer to only be visible when a character is on one of that layers tiles. Useful for toggling the visibility of hidden paths for example.

Rather than calling showLayerOnEnter() manually, refer to the loadTiledMap() documentation as Qiso can set all of this up internally, using custom layer properties.