You have to set the main script in the preferences (if not done yet). Then just click in SED on File > Publish.
in gamestudio you program always in 3D, but you can use it also in 2D (by using only 2d-elements like panels or setting the camera in your game only in a top view