find_tile_region
Determine whether a world coordinate lies on a real tile in a GameMaker room, returning the connected tile region if occupied. Confirms a point is inside tile-drawn geometry, not just instance-free.
Instructions
Check whether a world point in a room sits on a real tile, decoding GameMaker's compressed tile layer data (invisible to get_room_info's instance list). If occupied, reports the connected region of tiles it belongs to -- use this to confirm a spot is actually inside tile-drawn geometry (a building, a floor) before placing something there, not just clear of instances.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | World X coordinate to query | |
| y | Yes | World Y coordinate to query | |
| roomName | Yes | Name of the room to inspect | |
| projectDir | Yes | Absolute path to the GameMaker project directory |