tmRowAt

Gets the row to draw a sprite after, from the world position of its feet. Off the map it gives the nearest row. Takes map (The map's handle), worldX (The world x position, in pixels), worldY (The world y position, in pixels). Returns: The row.

Tilemap

Parameters & Returns

Parameters

map Int
worldX Int
worldY Int

Returns

Int

Quick Summary

Gets the row to draw a sprite after, from the world position of its feet. Off the map it gives the nearest row. Takes map (The map's handle), worldX (The world x position, in pixels), worldY (The world y position, in pixels). Returns: The row.

Technical Exegesis...

Gets the row to draw a sprite after, from the world position of its feet. Off the map it gives the nearest row.

See the Tilemaps guide.

Returns: The row.

Example

Example.bam
r = tmRowAt(map, footX, footY)