Page 1 of 1

Switches and tile doors

PostPosted: February 2nd, 2013, 5:51 am
by Superdestructor99
I made an item using tiles... Now I want to do this: If I active a switch,the door opens... But I don´t know how to do this... Can anyone help me? Thank you.

Re: Switches and tile doors

PostPosted: February 2nd, 2013, 6:02 am
by Blablob
I guess I'll be helping you again. ;)

The simplest way would be to just move the item you want somewhere off-screen.

For the door, just give it a tag name of 'door' or whatever you want to call it. (I'll use 'door' for the sake of argument).

In the trigger properties for your switch, go to Item < Move Item, and add that. Change Item Tag to 'door', set to 'relative' if it isn't set already, and change the y to 1000.

For simplicity's sake, that's pretty much the easiest and fastest way to do it. Hope it helps!

Re: Switches and tile doors

PostPosted: February 2nd, 2013, 6:04 am
by Superdestructor99
Thank you for help me :D but... I wanted the door went up slow,like in the story level 2. When I press the switch now,the door disappears...

Re: Switches and tile doors

PostPosted: February 2nd, 2013, 10:49 am
by KABOOM
In that case...

Make the door so it moves the way you want it to move when you activate the switch.
Uncheck the "Start moving" checkbox on the door.
Then, in the trigger properties for the switch, go to Special > Play Platform, and set that tag to "door".
Next, go to Flow Control > Sleep.
Go to Special > Stop Platform, and set that tag to "door" as well.
Play around with the duration of the Sleep command until you get a good result.

I hope that helps. I can make an example level if you want.

Re: Switches and tile doors

PostPosted: February 3rd, 2013, 1:32 am
by Superdestructor99
I did it... And I can´t do it... The door doesn´t move...
:(

Re: Switches and tile doors

PostPosted: February 3rd, 2013, 2:49 am
by Megar
Well, I may as well throw together an example level. Just look through the triggers on the switch and everything on the wall. Tell me if you don't understand anything. ;)

Code: Select all
22x50~.712ab.18abaa2ab.18ab4.19ab3.13ad2.4ab3.13aa2ac.4ab2.13aaac2.19aaac.20ac.21acad.20aaac.12bZbX7acaa3ac.10bX7ac6.16ac7.15ac7.15aa66~.638aa2ac.19ac3.19ac2.3ad3.14aa.3abaa3ac.13aa.3ab4aa.13aa.4ab3aa.13ac2.4abacaa.13acaaac.4abaa.13aa2ac.3ab2aa.13aa2.4ab2aa.13aa2.4ab2aa.13adaa.3ab3aa.13aa2ad.2abadabaa.13aa2adab3ad4.4bZbX.bX.bX3.aa3ad3aaad2.4bX8.4aa5ad2.3bX8.4aa6ad2.2bX8.5aa5ad3.bX8.6aa8bX8.9aa~101;169;1380;1;1;0;;0|103;307;1398;1;1;0;;0|102;68;1322;1;1;0;;0~~0;368;1504;1;0;0|9:Door;464;1456;;1,6;bX6;all;0;0;5;300;0;100;0;90;30;0;1;4;1;5;1;5;0;400;2;200;0;0;l;d;3;10;10;30;0;1;1;-;0;1;64;5;0;0;1000;3;0;0;;1;1;0;0;1|5;238;1060;0;1;0;cinemamode:camera,1,0,0,0,Door,10,0,10:sleep,30:play,Door:sleep,60:cameraoff:move,Door,0,500,0,0:camera,0,0,0,0,,0,0,10:sleep,30:cameraoff|6;336;1440;64;64;0;1;subtitle,0,The%20door%20appears%20to%20be%20closed.%20Perhaps%20there%20is%20a%20switch%20around%20to%20open%20it%3F,50:invis_wait:subtitle_off|2;592;1512|102;412;1508;1;1;0;;0|103;285;1502;1;1;0;;0|7;97;1338;;1;3;all;0;0;5;300;0;100;0;90;30;0;3;3;5;5;5;5;30;30;128;128;0;0;0;0;3;10;10;30;0;1;1;-;0;4;64;5;0;0;1000;3;0;0;1;;1|40;80;1312;|40;112;1312;|40;96;1312;|50;97;1379;1;;1;1;2;|7;128;1208;;1;3;all;0;0;5;300;0;100;0;90;30;0;3;3;5;5;5;5;30;30;128;128;0;0;0;0;3;10;10;30;0;1;1;-;0;4;64;5;0;0;1000;3;0;1;1;;1|40;112;1192;|40;128;1192;|40;144;1192;~40;208;1432;|40;192;1416;|40;176;1400;|71;37;1176;1;;1;1;6;~Example%20for%20Superdestructor99~MegaR~1~1;0;0~0~1;0~0;1;3~1359888554~0.3

Re: Switches and tile doors

PostPosted: February 3rd, 2013, 4:55 am
by Superdestructor99
OK thanks :D Now I know how to do this,thank you ;)

Re: Switches and tile doors

PostPosted: February 3rd, 2013, 7:20 am
by Megar
No problem :D