play random sound from bank
Problem it solves
You want footsteps or sword swings to have audio variety so repeated actions do not sound repetitive.
What this block does
Selects and plays one random sound from an array of retro sound presets.
The block
Block ID: retro_sound_bank
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| sounds | Retro.Sounds[] | [Retro.Sounds.Jump, Retro.Sounds.Land] | A list of sound presets to pick from randomly. |
Example
Retro.playSoundBank([Retro.Sounds.Jump, Retro.Sounds.DoubleJump, Retro.Sounds.WallJump])
Add the extension
Add github:CrzLe0723/RetroFx to your project, or open: Import RetroFx.