I have an object (arrow) with a fixed xscale that rotates to wherever my character turns, I need for that arrow to shrink whenever it collides other objects so that the arrow xscale is give or take the same as the distance.
I tried getting the distance between two points (character and the other object) and dividing it by the width of the arrow...but the arrow gets bigger...
can someone help me with the formula for this?
Thanks in advance