Sound distance

694
695
0
1

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.

Editor