get overworld map at
Problem it solves
You want to inspect or modify the tilemap data of another room before the player actually travels there.
What this block does
Returns the tilemap data located at the given column and row in the overworld grid, or undefined if the slot is empty.
The block
Block ID: overworld_getMapAt
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| column | number | — | The column index of the target tilemap. |
| row | number | — | The row index of the target tilemap. |
Returns
tiles.TileMapData — The tilemap data at that coordinate, or undefined.
Example
let targetMap = overworld.getMapAt(1, 0)
if (targetMap) {
game.splash("Map found!")
}Add the extension
Add github:riknoll/arcade-overworld to your project, or open: Import arcade-overworld.