[QUOTE=tulamide] [QUOTE=Nifl] Even if it was, It kills the frame-rate.
This has been answered just a few weeks ago. There is a bug in the LOS behavior regarding objects with instances. The workaround is to use a family instead of the object itself (Just put the object into its own family).[/QUOTE]
Thanks for the response, but I tried that already. It doesn't work for me. I have 1 player object and hundreds (some times) of "non player objects". If I use Families, I can't get the LOS behaviour to work at all.
I wan't to make objects obscure each other, so that the one in front of another is obscuring it. Just can't get it to work :(
And JayJay, the system you made was very interesting and "kind of worked". It seamed however that once an object gained sight of me, it continued to be able to see me, even if I hid behind the "map". Also it became very laggy once i reached about 100 objects (Yeah I know, 100 objects is a lot, but that's the problem, the player needs to be able to interact with the world very well, therefore I can't just make static Background object, or sprites with no LOS).
Well, I feel than I have complained a lot. Maybe there is no way to be able to measure if you can see objects (with one hundred of them) without lagging.
Thanks anyway guys. For now I guess I'll have to live with the idea that Line of sight doesn't work.