This effect causes a sector to stretch or shrink in the direction that you desire. A good example of this effect would be the curtains in E1L1.MAP. I also used curtains in my tutorial map.
Make your sector which will be shrunken or stretched. I will be using a bridge in this example. Tag it [0,27]
.
Raise or lower your sector's floor or ceiling if you want to, then place the following sprites in it: S[Channel,20], A[0,Channel], Sp[0,OpeningDistance]
. The angle of your S
controls the direction that your sector will shrink or stretch to. For OpeningDistance, a value of 1024 is equal to the largest grid square in BUILD. Make sure your sector doesn't shrink or stretch into a wall, or else ugly glitches will occur. Lastly, be sure to use the R
key to properly align floors and ceilings so they don't look funny when the sector shrinks or stretches in the game.
Place a trigger somewhere in your level. If you place a switch, tag it [ActivationSound,Channel]
. If you place a Touchplate, tag it [NumberOfActivations,Channel]
. NumberOfActivations is how many times the Touchplate will activate the shrinking or stretching sector when stepped on (0 being infinite).
Now when you activate the trigger in the game, your sector will shrink and/or stretch!