play enemy hit
Problem it solves
The player is hitting enemies in a rapid combo chain and you want each hit to sound increasingly intense.
What this block does
Plays an enemy impact sound whose pitch rises based on the current combo count.
The block
Block ID: retro_enemy_hit
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| combo | number | 1 | The current combo multiplier or hit streak count. |
Example
Retro.playEnemyHit(3)
Add the extension
Add github:CrzLe0723/RetroFx to your project, or open: Import RetroFx.