This game requires the Flash plugin.

Sound distance

By: Latif
8 Plays

Arrow keys to move

The closer you are to the music box, the louder the music will be. This uses the Pythagoras theorem to calculate the distance between the player and the box. Then it will determine how loud the music should be with a percentage so you can use that value for the volume input in the sound behavior block.

Open Editor