Emit distance

How do you make it so the farther your mouse is from the player, the farther you will emit something. https://flowlab.io/game/view/1481693