Different Light Layers?

I’m making a side view game and decided to add lighting and daytime. I used a moving light to simulate the sun and added light obstacle behavior to platform objects. I want the shadows to be dark but not the tile itself. Is their a way Ii can do this? Maybe by adding layers of lights, but I doubt its even possible.

I’m trying to avoid adding a 2nd tile behind platforms that have the light obstacle instead, due to performance.

This is what’s happening now. The platforms are dark due to shadow being rendered over them.

Sort of what I want. The platform to cast shadow but still be visible.

Any Ideas.

As far as I know, you can only have a single lighting layer.

The closest thing I could think of would be to have your platforms be graphical only, and put them on a new layer that is above the lighting layer. Then on your other layers, have placeholder sprites shaped the same as the platforms that act as the light obstacles.

1 Like

That’s exactly what I wanted to avoid. Because I want to make a procedurally generated mining game. Almost like Terraria in a way so each tile needs to be seperate block that can be mined and destroyed.

And since GDevelop doesn’t handle sprites in the most effective way this causes major drop in frames. Eventough my pc has 16G RAM.

So I need to learn how to save blocks in chunks. Then how to unload en load every block or chunk as the player moves to avoid frame drop.

And having a two sprites for every tile will almost cut my frame rate by half.

But I guess this is the only way then? Bummer :slightly_frowning_face: