tmHitWorldX

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.

Tilemap

Parameters & Returns

Parameters

This function takes no parameters.

Returns

Int

Quick 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.

Technical Exegesis...

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.

Returns: The world x position.

Example

Example.bam
x = tmHitWorldX()