Hi.
I'm facing various problems, while developing a side-scrolling game (platformer).
I'd like to ask - how do i move the character correctly around the level?
The situation is as following:
I'm using pos =
body->GetPosition();
pos.x += movementSpeed*deltaTime;
for that now.
And for the jump - ApplyLinearImpulse.
At this point i'm facing the following problem - the character doesn't jump, when touching a wall - because of high lateral resistance.
I've tried to cover the whole body of the character, except his bottom, with an interlayer with friction = 0, but that didn't solve the problem - the body seems to get pressed sideways to the wall, which prevents the character from jumping.
How do i correctly embody this jump and the movement of the character around the level, to avoid such problems? - So that the character would freely move while touching the surfaces, and round small corners while jumping.
I'm facing various problems, while developing a side-scrolling game (platformer).
I'd like to ask - how do i move the character correctly around the level?
The situation is as following:
I'm using pos =
body->GetPosition();
pos.x += movementSpeed*deltaTime;
for that now.
And for the jump - ApplyLinearImpulse.
At this point i'm facing the following problem - the character doesn't jump, when touching a wall - because of high lateral resistance.
I've tried to cover the whole body of the character, except his bottom, with an interlayer with friction = 0, but that didn't solve the problem - the body seems to get pressed sideways to the wall, which prevents the character from jumping.
How do i correctly embody this jump and the movement of the character around the level, to avoid such problems? - So that the character would freely move while touching the surfaces, and round small corners while jumping.