Well, I would've done a search for this, but when I type layers into the search engine, it brings up everything with the word "pLayers" in it, and well, that brings up half the damn site. Everything else looked like it had to do with Photoshop, so here I am.
I was a bit reluctant to use Layers, because I heard it was slow, but the alternatives I've tried have been way slower, and the Layers work perfectly so I'll stick with them. The only problem is, there I can't seem to find any way to manipulate them other than "Move Object To Layer". Is there any way to use any other kind of manipulation? For example, "If Object is In Layer" or "Set Layer Visability".
I'm simply trying to make one of those places that you can't see into untill you walk into it kind of thing, and so on. What is the usual technique for doing so?
OH man, I forgot about the layers object, for some reason I got it into my head that that only worked with re-arranging orders. Damn. And I just spent a whole day working on the code. It works, but it problably would've been less complicated. There are a few things that actually now that I think about it wouldn't work with the layer object, but I can still use it for other things. Well, you learn something everyday.
EDIT: And I can think of at least 10 gnarly things I could do with a compare script like Dr. Jim said.
Also, now that I have someones attention, it might be pretty cool if I could get the layers below the player to kind of shrink, to give the area a bit more depth. I've tried messing around with the perspective object, but it really doesn't have the effect I'm going for. Should I give every item a qualifier and a universal value set to the layer of the player, then it calculates the ammount of layers down from the player, then scales it down a bit based on if it is -1 from player, -2 and so on, or is there a much easier way to do that?