Did you try opening the sample levels in SRB2 Doom Builder, looking at how it was done, and mimicking it? That's what I do when I can't work out how to do something. Once you've mastered mimicking it, try tinkering with how it works to produce exactly the result you want.