How to make object's alpha increase/decrease depending on how far player is from it?

I tried to make code for a block that would show itself once the player gets close to it but I just could not get it to work, does anyone have any tips for how to do this?

2 Likes

Look in the folder labeled “Distance” and copy the Distance bundle,
Flowlab Game Creator - Bundle Library

4 Likes

I didn’t even know about the bundle library, thank you so much!

2 Likes

Try using some sort of mapping behavior. (meaning ratios)
This would probably be more complicated compared to JR_01’s version, but I’d give it a shot.

1 Like