Hi I work on a simple jump and run game but I have the problem that when I jump the player stops.
I don’t know why because I add in jump() the x movement.
void run(){
rb2d.AddForce (new Vector2 (moveForce, 0f));
}
void jump(){
rb2d.AddForce (new Vector2 (moveForce, jumpForce));
jumping = true;
}