I want to make so that when you get closer to the object gradually it gets more and more invisible, but when getting further, the object gets more visible gradually. What is the script for doing this? I tried to do this but instead I made it that when closer it gets more visible, and vice versa.
Done! First of all, I moved the Pink sprite's square to the center of the costume, and then adjusted the x and y to put it in the same place. Then I simply told the play sprite to set the ghost effect to (100 - (distance to Pink)). It works!