tmHitWorldX

Category: Tilemap

Syntax:

tmHitWorldX:Int()



Returns

Int



Summary

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.

Takes no parameters.

Returns: The world x position.

View detailed documentation online



Example
x = tmHitWorldX()

BambooBasic © 2026 Michael Denathorn