map.TestPoint
Test whether a tile in the map is collidable.
Syntax
map.TestPoint(x, y)
Parameters
x
- The horizontal index of the tile.y
- The vertical index of the tile.
Returns
True if collidable, otherwise false.
About
LameMap has collision support built in. map.TestPoint
returns whether a tile has collision enabled.
You can test whether or not collision has occurred with map.TestCollision
, passing the rectangle of the object.
Only valid map regions are tested for collisions; positions that are off the map area will always return 0.