The Daily Click ::. Forums ::. Klik Coding Help ::. Manipulating Layers
 

Post Reply  Post Oekaki 
 

Posted By Message

Deleted User
4th February, 2009 at 17:14:10 -

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?

 

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
5th February, 2009 at 10:58:00 -

Unfortunately you can't set layer transparencies or visibility. Which is a bit of an oversight IMO, such a thing would be fantastic.

"If object is in layer";
Use the Compare 2 general values bit, you can view the objects layer in there.

Edited by Dr. James MD

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
5th February, 2009 at 13:24:09 -

Sure you can... you just need to use the Layer Object and maybe the HWA Build if you want to work with transparencies.
Image

 
http://www.facebook.com/truediamondgame

Deleted User
5th February, 2009 at 15:35:31 -

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?

Edited by an Administrator

 

Dr. James MD

Addict

Registered
  08/12/2003
Points
  11941

First GOTW AwardSecond GOTW AwardThird GOTW AwardPicture Me This -Round 26- Winner!
5th February, 2009 at 17:56:34 -

Layers object MUST USE. I swear I have that too but I never played with it.
Cheers Brandon

Edited by Dr. James MD

 
Image
http://uk.youtube.com/watch?v=j--8iXVv2_U
On the sixth day God created Manchester
"You gotta get that sand out your vaj!" x13
www.bossbaddie.com

Ski

TDC is my stress ball

Registered
  13/03/2005
Points
  10130

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!KlikCast HelperVIP MemberWii OwnerStrawberryPicture Me This Round 28 Winner!PS3 OwnerI am an April Fool
Candy Cane
5th February, 2009 at 18:55:55 -

Makes sense considering the layer properties box has a "Visible at start" check box

 
n/a
   

Post Reply



 



Advertisement

Worth A Click