- Home /
How to setup a 2D Beat em up?
Complete Unity newbie, I'm not sure how to set up a scene for a beat em up ( Dragon's Crown, Castle Crashers )
I want the characters to be 2D but be able to essentially move across the Z axis, and still be able to jump and land on the same spot on the X axis. Most tutorials I see set up the ground as a rigid body which doesn't seem to allow me to move through it.
Answer by OP_toss · Nov 20, 2013 at 10:33 PM
First off, I'd use the new 2d system with Unity 4.3. I've yet to use it myself, so I can't note specifics, but it should be exactly what you're looking for.
As far as Z movement, I would actually move the characters in Z space, so you don't have to manually keep track of Z, sort rendering, etc. Have something that sets the Y position based on the Z. You may even be able to get away with a tilted groundplane, wherein moving back raises the character inherently. Your ground height will need to be looked up based on your Z, but otherwise, this should be ideal and hopefully won't complicate your code too much.
This Z setup may not work with the new 2d system, as I'm not sure exactly how strict it is with the Z axis, but give it a try and see how far you get. Post more specific questions to get more specific answers. Also maybe someone who's used 4.3 can help.
Your answer
![](https://koobas.hobune.stream/wayback/20220613122328im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Sprites rotating around Z axis when they shouldnt be. 0 Answers
[SOLVED] Sprite showing up in "Scene", but not in "Game" 11 Answers
overhead game in 2d world? 0 Answers
Several 2d scenes on screen 0 Answers
Text on Enter Trigger / Text Delay 1 Answer