overworld set animation timing function
Problem it solves
You want the room scrolling animation to start slow and speed up smoothly instead of moving at a flat, constant speed.
What this block does
Sets the easing curve used for transitions (such as Linear, EaseIn, EaseOut, or EaseInOut) to give animations a natural feel.
The block
Block ID: overworld_setAnimationTimingFunction
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| func | TimingFunction | — | The easing function to use (e.g. Linear, EaseInOut, EaseInExponential). |
Example
overworld.setAnimationTimingFunction(overworld.TimingFunction.EaseInOut)
Add the extension
Add github:riknoll/arcade-overworld to your project, or open: Import arcade-overworld.