tmHitDistance

Category: Tilemap — Following ground

Syntax:

tmHitDistance:Int()



Returns

The distance, in pixels.



Summary

After tmProbe: how far along the solid pixel was.

See the Tilemaps guide.



Example
d = tmHitDistance()

BambooBasic © 2026 Michael Denathorn