• Godot Help
  • How can i made the bed to maintain capable of stopping me?

Hi i am noob, the most similar thing i used is gamefroot but i dont used it a lot because i had no time.

I am starting practically from zero ( 0.5 perhaps) and i have a problem that i have not been able to find about.

I was using my character (a rigidbody2d) and a bed( a rigidbody2d but in static mode) for trying the engine.
At first my character rotated when pushed the bed, that i dont want to move but making sure that it dont move. I investigated and find a solution for the rotation problem, atleast the sprite stopped rotating but when i push my bed something wrong still happens.

The character went up and right slowly( i only had right key pressed) like if he was sliding. It made that even after the sprite is far away and i noticed that when returnde to the place where the bed is, it dont stopped or even made my movements slower and weird again. It is like the thing in charge of collisions had moved without moving the sprite.

What i can do? I stopped rotation problem with integrate forces and rotation =0.

Are you able to post screen shot of the error? First thing I am wondering, is the movement code, the force on the rigidbody getting applied from the _process() or the physics process? It should be applied inside the physics process to make to work best. If it get applied in the _process() it could give unexpected results.

    newmodels not in this moment but perhaps i can take photos in the night or tomorrow.
    In any case i made the movement in inputevents.
    Something like ( i cant remember all but it walked)

    If event.pressed and event == KEY_RIGHT
        Velocity.x = 20
        Velocity.y= 0

    And like that for all keys.

    The problem was fixed changing my character to character kind of rigidbody2d instead of rigid.