Light system alternative

Hello,

Do you have any ideas about how to make lights effect without Light2D ?
Indeed I have some problems with it and it will soon be deprecated.

I want to be able to set a global illumination (Color, intensity) and have lights.

I’ve seen this post on another forum:

It is perfect, but with it i can’t make for instance a police beacon, can I ?

An animated png perhaps?

You can often just get away with an image overlay. Scale, tints, and blend modes could make it look more like a light. In a 2D game, the ability to use normal maps is arguably the biggest feature a proper lighting shader gives you.

@BlunT76 A way less convenient than programmatically, but it is a good alternative.

@Telinc1 Indeed, and in my case it is certainly not enough. I need a more realistic light.
With the example i sent it doesn’t look realistic, mainly because there is no shadow.

As you can see, it would totally ignores other objects:
ex

Does anyone have a solution ?

Here is the problem i got with Light2D:

You should be able to make a police beacon with the post you linked. Just rotate using something like this.

Basically what the person is doing is they are creating another canvas on top of Phaser’s, which should work using the above.

You can probably do a better version by using Phaser DOM so that it is more Phaser-like.

it doesn’t look realistic, mainly because there is no shadow

Check out this link: 2d Visibility