Category: Tilemap — Queries
Syntax:
tmHitWorldX:Int()
The world x position.
After a hit: the world x. For a box it's the tile's corner, or for a shaped tile the first solid pixel found; for a ray it's where the line reached the tile.
See the Tilemaps guide.
x = tmHitWorldX()
BambooBasic © 2026 Michael Denathorn