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.

set global retro volume

Problem it solves

You want an options menu slider where players can adjust the overall master audio volume.

What this block does

Sets the global sound effect and music volume level across the game.

The block

Block ID: retro_global_volume

set global retro volume $volume block

Parameters

NameTypeDefaultMeaning
volumenumber128Master volume level from 0 (silent) to 255 (maximum).

Example

Retro.setGlobalVolume(180)

Add the extension

Add github:CrzLe0723/RetroFx to your project, or open: Import RetroFx.