Hello! I have been using Unity for several weeks now and I have been unable to find a solid solution to 2D level design for a sidescroller Mario type clone in unity. I tried drawing the level in Blender and adding colliders but I found it hard to work with uneven terrain and the unity colliders. I also tried using Tiled Map Editor (mapeditor.org) and unity doesn't have any support for the TMXTiled map format. Can someone please help me find a solid solution to 2D level design in unity? Torque2d has a 2d level editor is there anything like that for unity?
Well sidescrolling can be viewed as a camera which has 2 axes locked solidly onto that of the lookAt object. With possibly a kite like behaviour if dampening in and out. Since it is mario like I would suggest locking onto the target and only have one variable change being the distance you want to look from.
What also is a nice view of the world for us people is that you have a camera locked in the world. And the player movements actually just cause the world to move around it. Relatively speaking there is no change to the observer. It happens more than you may know, but then again I have no idea how much extra effort that would be in unity.
That would be if object is on (0,0,0) facing absolute right (Y rotation + 90 ), the camera would have to be on
`(objectXPosition, heightAboveObject(const),-distanceToObject(const))`.
It could be worth your time checking out the Ogmo editor. It allows you to design in a pure (tiled) 2-d environment and outputs to xml. You'd have to figure out how to import the data from there, though.
If you do go with it, I'd be curious to see how easy it is to go back and forth. Hope this helps!
Is this the type of thing you're looking for?
http://www.anbsoft.com/middleware/sm2/
Edit: I saw a video a while ago that let you design sidescroller levels in unity, I coulda sworn it was SM2, but now I'm not so sure. Looking around some more.
Edit again: This is what I was thinking of http://forum.unity3d.com/threads/72934-UniTile-2d-Tile-based-Map-Editor-within-Unity