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.

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

play enemy hit combo $combo block

Parameters

NameTypeDefaultMeaning
combonumber1The 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.