I have managed to fade the text in upon collision.
But I want the text to fade away the further I am away from it.
So, the closer I get, the more visible, the further away, the less visible.
Text set opacity to (100-distance(text.x, text.y, character.x, character.y)/10)
At 1000px distance the text will be fully transparent, at 0px fully opaque.
Develop games in your browser. Powerful, performant & highly capable.
Thanks - Figured out how to add it.
Thanks so much!