overworld location
Problem it solves
You want to show a mini-map coordinate or trigger a boss fight only when the player enters room (2, 3) on the world grid.
What this block does
Returns the current column or row index of the active tilemap in the overworld grid.
The block
Block ID: overworld_currentLocation
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| property | LocationProperty | — | Choose Column or Row to get that coordinate. |
Returns
number — The 0-indexed column or row number of the current room.
Example
let col = overworld.currentLocation(overworld.LocationProperty.Column)
let row = overworld.currentLocation(overworld.LocationProperty.Row)
game.splash("Room: " + col + ", " + row)Add the extension
Add github:riknoll/arcade-overworld to your project, or open: Import arcade-overworld.