Hi
I have watch some tutorials about controlling characters, but it is not working for me.
public float speed = 10.0f;
void FixedUpdate ()
{
float moveHorizontal = Input.GetAxis("Horizontal");
float moveVertical = Input.GetAxis("Vertical");
Vector2 movement = new Vector2 (moveHorizontal, moveVertical);
rigidbody2D.AddForce(movement * speed * Time.deltaTime);
}
It is like rigidbody2D only exists as Rigidbody2D and the AddForce properties do not exist.
Please help!