I’m using New Input System for my top-down RPG movement. It works when i click the WASD one by one but if i click 2 of them togather like A and S for left down it gives this Error:
My Input Controller
My Code:
public class CharacterMovement : MonoBehaviour
{
[SerializeField] private float moveSpeed = 5f;
[SerializeField] private Rigidbody2D rb;
private Vector2 movement;
private void FixedUpdate()
{
rb.MovePosition(rb.position + movement * moveSpeed * Time.fixedDeltaTime);
}
private void OnMovement(InputValue value)
{
Vector2 mevementInput = value.Get<Vector2>();
movement = mevementInput;
}
}
its still work how it should be but i really hate this error.