KacperStasieluk
the trick to get from a position on one layer to same place on a different layer is to use LayertoCanvas from the source layer and then take those canvas coordinates and plug them into CanvastoLayer on the destination layer.
I made a quick sample to show you (based on that tutorial you linked to).
I made the mask layer have the same parallax settings as the Game layer, so the glow object can just be pinned to a light source on the game layer. But any light source on a layer with different parallax settings needs to manually set the glow position using the layer to canvas - canvas to layer method.
so, in my sample there are two torches on the game layer and some fireflies, and the player has a very dim light too. Then there is a torch on the layer behind that (with 50% parallax), and a moon on the back layer with 0% parallax.
https://www.rieperts.com/games/forum/LightMask.capx