Any way to change the opacity of a tile if player overlap it?
Develop games in your browser. Powerful, performant & highly capable.
You can't change tile opacity, but you can put another semi-transparent sprite above it with "Destination out" blend mode, this will make the tilemap under this sprite semi-transparent. See "Blend modes" template.
You could erase it, or set its index to -1.