locked
I am using Visual Studio for about month, and I was tried to make game. But every time I try, this error pops up. Please help me!!! RRS feed

  • Question

  • {
        public Rigidbody2D rb2d;
        public float forceOnWalk = 100;

        // Update is called once per frame
        void Update()
        {
            if(Input.GetKeyDown("a"))
            {
                rb2d.AddForce(forceOnWalk * Time.deltaTime, 0, 0, ForceMode.VelocityChange);   //Error is here. It says: "No overload method

               }                                                                                                                                                                  'AddForce' takes 4 arguments". I need help!!!

        }                                                                                                                             
    }



    Tuesday, March 10, 2020 7:40 PM

All replies