load overworld map in direction
Problem it solves
You want the player to step through a teleporter or press a switch that moves them directly to the room to the right.
What this block does
Loads the adjacent tilemap in the specified collision direction (Top, Right, Bottom, or Left) relative to the current room.
The block
Block ID: overworld_loadMapInDirection
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| direction | CollisionDirection | — | The direction to move on the grid (Top, Right, Bottom, or Left). |
Example
controller.B.onEvent(ControllerButtonEvent.Pressed, function () {
overworld.loadMapInDirection(CollisionDirection.Right)
})Add the extension
Add github:riknoll/arcade-overworld to your project, or open: Import arcade-overworld.