set walls block map transitions
Problem it solves
You want to prevent the player from walking into a neighboring room if that room's entry edge is blocked by solid wall tiles.
What this block does
When enabled, stops map transitions from happening unless the player sprite can actually fit in the destination room without overlapping walls.
The block
Block ID: overworld_setWallsBlockTransitions
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| blockEnabled | boolean | — | true to block transitions into walls; false to allow automatic repositioning. |
Example
overworld.setWallsBlockTransitions(true)
Add the extension
Add github:riknoll/arcade-overworld to your project, or open: Import arcade-overworld.