I’ve been pouring over videos and rewording my search to try and get this right, but it’s not happening.
Alright, I will just get to my problem.
Building a beat em up in Unity 3D. Characters are complete 2D, but move around in a 2.5 (3D) environment. Basically like a Final Fight or ala Double Dragon.
Used GIMP to create all backgrounds and objects. Currently using Magicavoxel to make some walls, platforms, objects 3D from my 2D pixel art.
What I’m really not accomplishing is taking my png files (or .obj files from Magicavoxel) and properly importing them into Unity. I change properties to sprite and I try to to convert my 32x32 or 64x64 …etc files into Unity’s conversion scale (not sure if it really makes a difference?). I start with creating a 3D cube which will be my ground.
I made a 1280x480 grass floor in GIMP after failing trying to piece the 32x32 grass pieces together. I planted the image on the cube, but it doesn’t come out right. Any step by step guidance?
2nd problem is taking my 2D city background and trying to line it up next to the ground. This won’t be interactive, just a collider of sorts so the player can’t run through it. Plus, when importing it seems to lose its color or luster.
So if you made it this far, to reiterate, I just need a basic walkthrough (cuz I am learning and suck at this…art is my forte) on properly importing sprites, maintaining their same sharpness, size, planting them on a large playing field for player to walk on and lining them up to a 2D background. I also have to build 3D objects for walls to climb on or jump off of.
Anyone willing to help? I want to learn this and have come across some cool tutorials, but nothing to get what I need to do.
You haven’t given us much to go on. In what way is it not coming out right? Perhaps post some screen shots.
Screen shot again, please. Is it really different as soon as you import it (i.e. in the project view), or only after you add it to your scene? In the latter case, is it affected by lights?
I don’t think you need a walk-through… there really isn’t very much to it. Show us what you’ve got going on, and we can help you with whatever problem you’ve happened across.
This is me trying just to get the items inserted and toy with setting it up. I plan on organizing the images within folders later on. Grass Color object is the 64x64 png file. The Grass 128 one is it stretched out when I imported it. The Grass 2 blue square is the object file I imported from MagicaVoxel and the thin grass2object in the ASSETS window is the texture that if you pull over the blue object file it will wallpaper over it. Not sure what works better…importing the large grass 128 file or find a way of just importing the 64x64 sprite tiles and snapping them together (or just stick with the magicvoxel object files)… I have everything imported, but am I overthinking things to get things lined up like a Double Dragon level game…?
This is basically the mock up of the 2D City Background. I think I need to put a collider around it so whenever I get to the player insert part and up and running he will stop at the fence.
Some of those images didn’t come through. But at first glance, it seems you’re importing those images as regular textures instead of Sprite textures. Select the image file in your project, and in the inspector, change the type to “Sprite (Single)”. Click Apply. Then drag one out into your scene, and it will create a game object with a SpriteRenderer component.
Do a few of the Sprite tutorials under the Learn section, and you’ll be well ahead of the game.
Hunh…I thought to create a Double Dragon Nes type game, I should set it 3D so I can move in all 8 directions with my little 2D character.
You think importing my 3D objects will work better in a 2D environment? Such as walls at an angle to climb up and jump off of? I know I could make the walls 2D, but I’d like to give those portions a 3D look.
Believe it or not, Double Dragon was not a 3D game! It wasn’t uncommon back then (nor is it now) to fake perspectives using 2D assets and handle movement using 2D as well.
If you press up, the character walks up on the screen. Right, and they go right. Going up a ladder? That’s not moving in 3D space, it’s just another form of moving up the screen!
Also keep in mind that you’re totally free to set your Unity mode to 2D and use 3D assets, and vice versa. The 2D/3D thing just sets default editor behavior, but doesn’t directly affect your game.