tmNeighbourY

Category: Tilemap

Syntax:

tmNeighbourY:Int(map:Int, x:Int, y:Int, direction:Int)


Parameters

Returns

Int



Summary

Gets the row of the cell next to this one, as for tmNeighbourX.

Takes map (The map's handle), x (The tile column, from 0), y (The tile row, from 0), direction (Which way, as for tmNeighbourX).

Returns: The cell's y.

View detailed documentation online



Example
ny = tmNeighbourY(map, x, y, 1)

BambooBasic © 2026 Michael Denathorn