![]() |
Another tilelayer question
Can tile layers be hidden/shown individually? The last time I played with tilelayers I think you had to tell it how many layers you had to show them, but can you hide and show them individually or no?
|
level.tilelayers[1].alpha = 0;
|
Wow, that one made me feel stupid. I was expecting some sort of hide() and show() or .visbile = false; or something lol
Thanks. That should work perfect. |
Now if I could just remember how to enable multiple layers. I think theres a script you need to use.
PHP Code:
|
You can't just enable layers. You have to actually create a level with layers in it, which the current editor can not do. You'll have to use Gonstruct.
|
I do have a level with layers. I used gedit to open it and added this line as a test
NPC Code:BOARD 39 53 3 1 FCFCFC Was drawing some water over some sand and going to add some alpha to it to see what kind of effects i could get :o As far as I could tell this should work but I think I remember tig telling me u needed a command to tell the client how many layers there were or something. I forget now. But my level shows up all black with the second layer showing and a few tiles fro mthe previous layer just around that layer showing up.. and no script is messing with it. i just dont know why it wont work. Quote:
|
It seems to work only when I use:
PHP Code:
PHP Code:
|
| All times are GMT +2. The time now is 10:46 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.