I'm making an effect that goes along the lines of "Player gets closer to object, intensity of effect increases."
So far I've been using 'distance(Player.X, Player.Y, Object.X, Object.Y) to get the initial value, but when the player gets closer this value gets smaller. The effect works fine- just in backwards. The effect is stronger when the player gets further away from the object.
Is there a simple command or thing I can do to "invert" this value in a way? For example let's just say that I want the intensity value to be '100' when the distance between the player and object is 0 pixels (touching).