I am making a top-down 2d game and I wanted to da the movement by adding force to the player. I gave him a rigidbody and turned off the gravity but I can only control the player when I turn the gravity back on and have the player stand on top of an object. Can someone help me with this?
rb2d.AddForce(5,0) will work, you may have the drag at too great a value
rigidbody2d.AddForce(Vector2.left * Input.GetAxis(“Horizontal”) * moveSpeed * Time.DeltaTime);
rigidbody2d.AddForce(Vector2.up * Input.GetAxis(“Vertical”) * moveSpeed * Time.DeltaTime);
if anything is backwards then just change .left to .right, or .up to .down