Switch to Fore/Background

It's a simple system. You just put an invisible hitbox which edit Back Tiles to Front Tiles. Another one to do the opposite. Then, you just convert your original Front Tiles to block. I'm kinda bad in explanation so here's a test level.
- Code: Select all
22x50~~.968aa132~102;56;1413;1;1;0;;0|101;368;1417;1;1;0;;0|103;666;1411;1;1;0;;0|133;597;1412;1;1;0;;0|133;231;1411;1;1;0;;0|219;487;1413;1;1;40;;0~30;256;1412;1;1;0;;text,1,Crouch%20to%20go%20back%20to%20the%20%3Cfont%20face%3D%22impact%22%3E%20Foreground%21~0;40;1504;1;0;0|9;170;1472;100,100,100,0;1,4;ae4;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;1;64;5;0;0;1000;3;0;1;;1;1;0;0;1~6;0;1376;704;16;1;1;tile,0,0,22,50,.968aa132,0:tile,0,44,19,6,aa84.aa2.aa9.aa.aa.aa3.aa2.aa5,1:sleep,30|6;0;1392;704;16;1;1;tile,0,0,22,50,.1034aa66,0|4;0;1408;22;6;100,100,100,100,0,0,0,0,-10,-25|118;169;1499;1;1;0;;0|30;112;1510;1;1;0;;text,1,This%20tree%20won%27t%20budge...%20Looks%20like%20it%27s%20time%20to%20go%20to%20the%20%3Cfont%20face%3D%22impact%22%3E%20Background%3C/font%3E%21|2;623;1510|226;23;1500;1;1;0;;0|224;126;1503;1;1;0;;0|157;226;1505;1;1;0;;0|158;267;1506;1;1;0;;0|157;388;1505;1;1;0;;0|158;475;1507;1;1;0;;0|144;245;1508;1;1;0;;0|148;325;1508;1;1;0;;0|147;411;1509;1;1;0;;0|149;438;1507;1;1;0;;0|151;515;1508;1;1;0;;0|150;558;1509;1;1;0;;0|146;68;1508;1;1;0;;0|600;354;1506;1;1;0;;0|66;384;1344;0;;1;1;7;|9;352;1552;;22,3;aa66;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;1;64;5;0;0;1000;3;0;1;;1;1;0;0;1|230;40;1528;1;1;0;;0|231;112;1576;1;1;0;;0|x233;144;1528;1;1;0;|232;216;1576;1;1;0;;0|230;336;1536;1;1;0;;0|230;416;1568;1;1;0;;0|231;640;1536;1;1;0;;0|x233;624;1576;1;1;0;~Switch%20to%20background~Niicola~3~11;0;-250~1~17;0~0;0;0~1432410017~0.5~1,0,25,25,25,50,100,0,100,100,100,0