Distrance problem

I am trying to work around a solution for multible light sources.
Test Project

I used 10x10px (for testing) black squares and filled a top layer with it, and want to change the opacity, depending on discances to light recources.

My problem is, that the condition of distances seems to be screwed up by camera rotation.
So the light around the player is traveling faster and in different direction then the player, even when the player is the object to test distance against.
Edit:
I tryed without cam rotation (normal topdownmovement behavior), and fixing the camera on the player, but the problem with the further traveling light is still there.
I do not know, what it is, thats preventing it from working.

Any idea, what i can do about it?

I’m getting a ‘Download does not exist’ when I click the Test Project link.