MakeCode Games!

A fan-made community library of MakeCode Arcade games. Visit MakeCode Arcade to make a game!

← Back to extensions

Retro FX

Add juicy 8-bit sound synthesizers, screen shakes, particle explosions, camera effects, and retro text displays to your games.

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

input buffer handler %handler buffer $bufferTime ms block

Parameters

NameTypeDefaultMeaning
handler() => voidThe callback action to buffer.
bufferTimenumber200Buffer 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.