set overworld transitions enabled
Problem it solves
You want to lock the player inside a boss room during combat so they cannot run away to another screen.
What this block does
Enables or disables automatic map transitions. When set to false, moving to the edge of the tilemap will not switch rooms.
The block
Block ID: overworld_setMapTransitionsEnabled
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| enabled | boolean | — | true to allow map switching, false to lock the player in the current map. |
Example
overworld.setMapTransitionsEnabled(false)
Add the extension
Add github:riknoll/arcade-overworld to your project, or open: Import arcade-overworld.