set overworld transition radius
Problem it solves
The screen switches rooms too early before your character even reaches the edge of the display.
What this block does
Sets how close in pixels the player sprite needs to be to the tilemap edge (while moving toward it) before triggering a room switch.
The block
Block ID: overworld_setMapTransitionRadius
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| radius | number | — | Distance in pixels from the map edge that triggers a transition (minimum 1). |
Example
overworld.setMapTransitionRadius(8)
Add the extension
Add github:riknoll/arcade-overworld to your project, or open: Import arcade-overworld.