I am a new Unity user. I’m just starting to use the tool and doing some tutorials, watching videos, reading documentation… to sum up, having lots of unity
I always wanted to create a top-down 2d platform game, like Alundra from psx:
I wanted to start this project with Unity as an excuse to learn the engine. The thing is, I came across with some ideas of how this could be done, but any of them looks easy to do and I am sure, with Unity, has to be some tricks to do with Z order and layers to have this jumping mechanics in an easy way.
I need some help here. How would you abord this kind of game? Any information would be appreciated!
First of all, i strongly recomend that you get your hand on some tilemap editor assets, or you are going to get crazy when trying to build diferent scenarios.
Second you have in the inspector the options for the “Ordering Layer” and “Order in Layer” to achieve the sprites ordering in Z,
you can watch this tutorial for the character controller, its for a platformer game, but it can be addapted pretty quickly
This is what I had a couple days ago. It is a bit better now. I am able to jump from platform to platform even better.
The keys are :
sorting order
Colliders within shadow gameobject
Tile colliders for fall tiles
Tile colliders for jumpable tiles
The code is literally the easiest part though. You simply change the Y of the player character up for some time, and then bring player back down without altering the shadow’s position. It’s best you learn how to do this as this is a good exercise to learn programming too.