Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Cleanup; edited tags; edited tags
Source Link
DMGregory
  • 140.9k
  • 23
  • 258
  • 401

I want that my 2d player doesn't slips Stop 2D platformer character from asliding down slope that I am making in a platform Game

I'amI'm making a 2d platform videogame2D platformer game with the default Unity 2D physics of unity2D , and. I am implementing slopes but, but my player slips down the slope because of the physics. I will send a picture.  

enter image description hereCharacter standing on slope

My code of the player movement:

MoveInput = Input.GetAxisRaw("Horizontal"); rbd2.velocity = new Vector2(MoveInput * speed, rbd2.velocity.y); //rotacion de personaje if (MoveInput > 0) { transform.localScale = new Vector3(1f, transform.localScale.y, transform.localScale.z);Here is the code I use for the player movement:

MoveInput = Input.GetAxisRaw("Horizontal");
rbd2.velocity = }
new Vector2(MoveInput * speed, rbd2.velocity.y);
//rotacion de personaje
if (MoveInput <> 0)
    {
        transform.localScale = new Vector3(-1f, transform.localScale.y, transform.localScale.z);            

 }
if (MoveInput < }0)
{
    transform.localScale = new Vector3(-1f, transform.localScale.y, transform.localScale.z);            

}

I want that my 2d player doesn't slips from a slope that I am making in a platform Game

I'am making a 2d platform videogame with the default physics of unity2D , and I am implementing slopes but my player slips because of the physics. I will send a picture. enter image description here

My code of the player movement:

MoveInput = Input.GetAxisRaw("Horizontal"); rbd2.velocity = new Vector2(MoveInput * speed, rbd2.velocity.y); //rotacion de personaje if (MoveInput > 0) { transform.localScale = new Vector3(1f, transform.localScale.y, transform.localScale.z);

    }
    if (MoveInput < 0)
    {
        transform.localScale = new Vector3(-1f, transform.localScale.y, transform.localScale.z);            

    }
    

Stop 2D platformer character from sliding down slope

I'm making a 2D platformer game with the default Unity 2D physics. I am implementing slopes, but my player slips down the slope because of the physics. 

Character standing on slope

Here is the code I use for the player movement:

MoveInput = Input.GetAxisRaw("Horizontal");
rbd2.velocity = new Vector2(MoveInput * speed, rbd2.velocity.y);
//rotacion de personaje
if (MoveInput > 0)
{
    transform.localScale = new Vector3(1f, transform.localScale.y, transform.localScale.z);            

}
if (MoveInput < 0)
{
    transform.localScale = new Vector3(-1f, transform.localScale.y, transform.localScale.z);            

}
added 530 characters in body
Source Link

I'am making a 2d platform videogame with the default physics of unity2D , and I am implementing slopes but my player slips because of the physics. I will send a picture. enter image description here

My code of the player movement:

MoveInput = Input.GetAxisRaw("Horizontal"); rbd2.velocity = new Vector2(MoveInput * speed, rbd2.velocity.y); //rotacion de personaje if (MoveInput > 0) { transform.localScale = new Vector3(1f, transform.localScale.y, transform.localScale.z);

    }
    if (MoveInput < 0)
    {
        transform.localScale = new Vector3(-1f, transform.localScale.y, transform.localScale.z);            

    }
    

I'am making a 2d platform videogame with the default physics of unity2D , and I am implementing slopes but my player slips because of the physics. I will send a picture. enter image description here

I'am making a 2d platform videogame with the default physics of unity2D , and I am implementing slopes but my player slips because of the physics. I will send a picture. enter image description here

My code of the player movement:

MoveInput = Input.GetAxisRaw("Horizontal"); rbd2.velocity = new Vector2(MoveInput * speed, rbd2.velocity.y); //rotacion de personaje if (MoveInput > 0) { transform.localScale = new Vector3(1f, transform.localScale.y, transform.localScale.z);

    }
    if (MoveInput < 0)
    {
        transform.localScale = new Vector3(-1f, transform.localScale.y, transform.localScale.z);            

    }
    
Source Link

I want that my 2d player doesn't slips from a slope that I am making in a platform Game

I'am making a 2d platform videogame with the default physics of unity2D , and I am implementing slopes but my player slips because of the physics. I will send a picture. enter image description here