Hiya,
So, I have a map like this:
Sometime I’m going to add in some stuff and I would like to add in some lights. I took a look at Box2dLights and set it up and it works great (Nice and simple), however I’m not able to do what I want to do. I would like to add in lights that will not affect the lighting anywhere on the scene except where the light is and where it extends to.
I tried moving the RayHandler updateAndRender method around my render method to try different rendering positions, but it didn’t do anything to help with my problem. When I put it so that it renders the light after my player and map render methods, it looks good, but where the light it is the only place where there is light. Everywhere else is completely black, but I think that is how the light is supposed to work (not sure).
Sorry if this post was confusing at all. Let me know if you need any more information or if you would like me to restate something.
Thanks!