overworld set animation duration
Problem it solves
Your screen transition animations feel too fast or too slow for the pacing of your game.
What this block does
Sets how long the room transition animation takes in milliseconds. Only works when animation type is not None.
The block
Block ID: overworld_setAnimationDuration
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| duration | number | — | Animation duration in milliseconds (e.g. 500 for half a second). |
Example
overworld.setAnimationType(overworld.AnimationType.Scroll) overworld.setAnimationDuration(500)
Add the extension
Add github:riknoll/arcade-overworld to your project, or open: Import arcade-overworld.