Z
Zanget
Guest
How can I calculate the distance between two variables and depending on the distance of this my object is more visible or less visible.
I create a variable and assign it a value
number_one = 5;
number_two = 0;
What I want to do is that depending on the distance of these two variables affect the image_alpha of my object, I want my object to become more visible while number_two is closer to number_one otherwise my object will be less visible. I do not know if I made myself understand correctly, how can I achieve this?
I create a variable and assign it a value
number_one = 5;
number_two = 0;
What I want to do is that depending on the distance of these two variables affect the image_alpha of my object, I want my object to become more visible while number_two is closer to number_one otherwise my object will be less visible. I do not know if I made myself understand correctly, how can I achieve this?