- Home /
2D Platformer Controller
I'm currently developing on a 2D Platformer in Unity. And now I'm stuggling with the Character Controller. My Levels have a similar concept to those in Ori and the Blind Forest and I decided to make a similar kind of Movement.
1. In general does Anybody have some Ideas how they achieved such Character Movement?
2. Most Problems causes the Sliding along Walls. As in Ori the Walls are angular and not straight like in Mario. So if the Character slides down or climb up a Wall it has to follow the Shape of the Wall and not simply go straight up and down.
(For those unfamiliar with the Movement of Ori and the Blind Forest here some Gameplay.)
Answer by Kciwsolb · May 08, 2018 at 05:45 PM
EDIT: I misunderstood the question. I will leave this up so others can see the response below. It helped me better understand what the user is looking for.
I could be misunderstanding, but since you are controlling velocity manually, the following might work:
Apply a custom PhysicsMaterial2D. Create one in your Assets. Set friction to 0. Apply it to your ground colliders.
Then combine that with a greater downward force while you are on the ground to keep you against the ground as you run over hills. Maybe that would have the effect you want? You might have to increase jump force to compensate.
https://docs.unity3d.com/Manual/class-PhysicsMaterial2D.html
Hello $$anonymous$$ciwsolb, thanks for your Answer. Unfortunately you misunderstood. In the Last Part of my Question I'm talking about Walls not a hilly Ground.
In 2D Plattformer like $$anonymous$$ario there are only straight Edges so you can just zero out the x Velocity and apply some y Velocity for Up and Down Sliding/Climbing. But in my Levels the Walls have a more realistic Shape so they are angular. Consequently if the Character slides down or climb up a Wall it has to follow the Shape of the Wall and not simply go straight up and down.
I hope this will provide some clarity.
Hi $$anonymous$$ciwsolb, I've rewritten the Question. I hope it's clearer now what I want.
Your answer
Follow this Question
Related Questions
Character animation jerks when moving 1 Answer
switching between different screen boxes 2 Answers
2D Buttons 1 Answer
2D Flashlight for a platformer 2 Answers
Velocity from external objects 0 Answers