How do I invert this so that it's greater nearer to the green, not farther?

helpwithcode

#1

Okay, so I was creating a project where you attack something and the damage it takes is greater near the green, but I don't know how to invert the damage because it's greater farther away from the green, not nearer. I know why, but how can I invert the damage?
Pictures:



#2

k/x, k= constant number, x= distance


#3

What's the constant?


#4

a large number, 1000, 10000, 500, etc


#5

It's only going to make the numbers smaller, not invert it. (Also tested it.)


#6

did you do it right?

k/x, not x/k


#7

Yep, I did it wrong, so I now did it right. Thanks for helping!


#8

But the numbers on the different sides aren't distributed evenly now.