overworld set scroll animation z
Problem it solves
Your custom UI elements or dialog boxes are getting swept away by the scroll animation when changing rooms.
What this block does
Sets the Z-index depth at which the scrolling transition renders. Sprites with a higher Z-index will remain visible on top without scrolling.
The block
Block ID: overworld_setScrollAnimationZIndex
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| z | number | 99 | The Z depth layer for the scroll transition (default is 99). |
Example
overworld.setScrollAnimationZIndex(50)
Add the extension
Add github:riknoll/arcade-overworld to your project, or open: Import arcade-overworld.