input buffer handler
Problem it solves
The player presses jump slightly before landing on a platform, and you want that jump input saved and executed once they land.
What this block does
Queues an action callback into an input buffer and executes queued actions after a short buffer delay.
The block
Block ID: retro_input_buffer
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| handler | () => void | The callback action to buffer. | |
| bufferTime | number | 200 | Buffer window delay in milliseconds. |
Example
Retro.inputBuffer(function () {
Retro.playRetroSound(Retro.Sounds.Jump)
}, 150)Add the extension
Add github:CrzLe0723/RetroFx to your project, or open: Import RetroFx.