How can i make a collision with the ground?
I'm using a 2d Box Collider here, but then the player can only stays on the upper edge of the ground, like the collider is "under" him.
Which is the right way of making it, since the player can move up and down on the ground?
PS: The background is not separated from the ground on this sprite. PS2: The green line on the ground is the box-collider mark.
Thx!
this is not doable with 2d colliders. you'd need to calculate your ground position yourself and clamp the players y position between jump (if he can) and calculated ground position.
Your answer
Follow this Question
Related Questions
Moving player from platform to platform 0 Answers
2D Characters slowly drifts downwards? 1 Answer
How to use humanoid animations for 2d characters? 0 Answers
How to make so that the player can jump on a object, but he can't stand on it? (2D) 0 Answers
How to use 3D colliders and rigidbody on 2D character controller 0 Answers