- Home /
2D side-scrolling Level Design
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?
In regards to Proclyon's Answer: I am asking about the actual level design... As in the best way to design the LOO$$anonymous$$ of the level, not program camera follows etc... Please read my question again.
Answer by Proclyon · Dec 05, 2010 at 12:08 PM
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))
.
Answer by Chris D · Apr 20, 2011 at 11:13 PM
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!
Answer by Patyrn · Apr 21, 2011 at 03:43 AM
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
Your answer
Follow this Question
Related Questions
Making the floor/ground of a map 1 Answer
How do I end my level? 2 Answers
How to manage large 2D worlds? 0 Answers
What is the best way to make Half - Life or DOOM style levels? 2 Answers
Making a new level 1 Answer