Are you asking how to make a 2D level?
If so, SRB2’s vanilla 2D mode can be activated by adding “typeoflevel = 2D” to the level header. However, this only supports straight 2D levels. If you want to create a 2D level with turns, ala Kirby 64, you will need to use a mod called Axis2D.