I am having some difficulty with getting my player object (a submarine) to trigger the opacity of wall objects. The idea is that the opacity of the walls are initialized to zero so they are not visible until the player begins to move within a certain distance.
Unfortunately it seems like regardless of the distance I set, the opacity is set randomly. It could be due to there being multiple wall objects placed around the player but I am not sure.
I have attached a link to the capx but if anyone has any ideas as to how to tackle the problem in general, that would be appreciated too.
Gradual Fade Issue (Updated)