Hi! I'm working on top-down shooter game, and want a visible light-of-sight. I'm using the appropriate behavior, but there are problems with its visible part. I want it to act like a light, not covering the solids, so sprites and masks aren't working. Line-of-sight shouldn't cast shadows, only light cone, which fits in corridor, for example. . Maybe I can use Shadow Light for it, but don't know how. Maybe there's a simple plugin, which creates a light beam - it would be great. Shadows don't stop at solids, I can't use them.
English is not my native language, sorry for mistakes
Take a look at this:
If that is close to what you're looking for then maybe you can ask tallenwebdev for some advice to get you on track.
That's not what I want. Flashlight cone here is crossing over the obstacles, and it looks bad. It's exactly the problem I want to solve
It's actually very well done the way that he does it. If you look closely, the flashlight only shines the more dim light on objects that are shorter then the player. This is quite realistic. The light does not cross over or go through taller obstacles like the walls.
Watch the first half of this:
Develop games in your browser. Powerful, performant & highly capable.
No, the light goes through the walls. It's hard to see that on 480p, but in the game it's really visible. The transparent shadows camouflage it a little, but not fuly.
Ah, ok. I've never played the game, just saw the videos.
Hi Burvey and —, you're correct the light does go through the walls though it's been improved since the last update on the Scirra Arcade. I also want to find a fix that allows the 'light' to only extend to certain objects. Thanks though Burvey for using my work as an example!
If you figure out a way please fill me in on it as well! Good luck!
Hey, does somebody know an answer? It would be amazing, because I don't see any solution but still need it so much